Click to See Complete Forum and Search --> : Using a .NET dll in Visual Studio C++ MFC project


d00_ape
February 21st, 2006, 02:37 AM
Hi.
I’ve searched for articles of how to implement my new .NET dll in my old MFC application. Firs of all – Is It possible. If I am really glad for tips on how to do it.

All tips are welcomed!

jhammer
February 21st, 2006, 11:10 AM
In order to call your managed dll from C++ or any unmanaged environment, the best way is to wrap it with COM, using the tool regasm.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfassemblyregistrationtoolregasmexe.asp
You can then call the dll as any other COM dll.

d00_ape
February 22nd, 2006, 01:13 AM
OK!! Thanks!

I've googled for Regasm.exe but I can not find it. Any clue...