R
Robert Ginsburg
I have created a .NET C++ forms application. I would like to call some
functions in an unmanged class that provides access to some underlying API
functions. The underlying class needs access to ATL (for example the CString
class). I created the app, added an unmanaged C++ class, changed the
compiler from /clrure to /clr. I added includes in stdafx.h . The system
compiles but fails during runtime (an assert fires on
_CrtIsValidHeapPointer ) apparently due to the fact that the ATL statics
are not initialized. According to
http://msdn2.microsoft.com/en-us/library/ms173267.aspx, I no longer need to
deal with _vcclrit.h or its idosynchrocises to make this work. However it
does not appear to work correctly.
Interestingly, if I create a Win32 project, and add a managed form to it,
all appears fine..
Any and all insight, pointers or help is appreciated
-Robert
functions in an unmanged class that provides access to some underlying API
functions. The underlying class needs access to ATL (for example the CString
class). I created the app, added an unmanaged C++ class, changed the
compiler from /clrure to /clr. I added includes in stdafx.h . The system
compiles but fails during runtime (an assert fires on
_CrtIsValidHeapPointer ) apparently due to the fact that the ATL statics
are not initialized. According to
http://msdn2.microsoft.com/en-us/library/ms173267.aspx, I no longer need to
deal with _vcclrit.h or its idosynchrocises to make this work. However it
does not appear to work correctly.
Interestingly, if I create a Win32 project, and add a managed form to it,
all appears fine..
Any and all insight, pointers or help is appreciated
-Robert