Calling an mfc dll from .NET

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
 
G

Guest

FYI, I am using VB .NET with Visual Studio 2003 and the DLL that I am trying
to use is written in C++.
 
A

Atul

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top