Re: regenerating the CProxy_ event firing class
Or rather recreate the project and uncheck the Attributed
ATL box... The generated code contains bugs. IIRC the
attributed event handling code has a memory leak.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:unJkTKB3GHA.3516@TK2MSFTNGP06.phx.gbl...
Scott Walters <swalters@vitalchek.com> wrote:
This worked great in VS2005. When I recreated the project in VS2003,
it just puts a duplicate line in the .h file that looks like...
__event __interface _IScriptEvents;
You have an attributed project here, whereas you had a non-attributed
project before. It is not the issue of VS2003 vs VS2005.
I don't see a
proxy class anywhere.
With an attributed project, a proxy class is generated automatically by
the compiler when it encounters __event declaration. If you want to see
the code that actually goes into your program after attributes are
processed, set
Project | Properties | C/C++ | Output Files | Expand Attributed Source =
Yes
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925