G
Guest
I have a non-MFC DLL in my legacy application and now I want to add some
managed code inside one of its classes (not exposing any managed code/classes
to the unmanaged application). I have performed the following tasks:
On the DLL:
set the /clr flag
marked it has having no entry point /NOENTRY
and forced a symbol reference __DllMainCRTStartup@12
performed a complete rebuild
The DLL compiles and in release mode runs fine, but in debug I get an
assertion at
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
in afxwin1.inl.
I am using a full version of VS2005.
Is there anything else I need to do to the DLL or something for the .exe in
order to allow it to run in debug mode?
Many thanks
Colin
managed code inside one of its classes (not exposing any managed code/classes
to the unmanaged application). I have performed the following tasks:
On the DLL:
set the /clr flag
marked it has having no entry point /NOENTRY
and forced a symbol reference __DllMainCRTStartup@12
performed a complete rebuild
The DLL compiles and in release mode runs fine, but in debug I get an
assertion at
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
in afxwin1.inl.
I am using a full version of VS2005.
Is there anything else I need to do to the DLL or something for the .exe in
order to allow it to run in debug mode?
Many thanks
Colin