Calling an mfc dll from .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What steps need to be taken when calling an mfc dll from .NET application? I
am getting an ASSERT error from the dll on afxCurrentResourceHandle. Do I
need to define anything specific in my .NET application to get this to work
 
FYI, I am using VB .NET with Visual Studio 2003 and the DLL that I am trying
to use is written in C++.
 
Try using AFX_MANAGE_STATE(AfxGetStaticModuleState( )); at the very start of
each function of your MFC dll that is called from .Net

- Atul
Sky Software http://www.ssware.com/
Drop-In Windows Explorer-Like Shell Browsing UI for your apps.
 
Back
Top