Link to home
Start Free TrialLog in
Avatar of satyaswarup
satyaswarup

asked on

Using an exported Class defined in an MFC dll in Posted on: 04/27/2004 23:41:54

I have a dll MyMFCDLL.dll in which a class MyExportedClass is defined. The dll is created using VC6.0. It is exported as _declspec(dllexport). I want to use this class in my C# application. how do I use it?
ASKER CERTIFIED SOLUTION
Avatar of vancouver_jones
vancouver_jones

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vancouver_jones
vancouver_jones

This is even better. I just found it. My situation that I described above was slightly different than yours because I had to adapt an unmanaged C++ class (not a dll) into my enviornment. This should be a TON easier for you:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp