CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    381

    Using a .NET dll in Visual Studio C++ MFC project

    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!
    ...and justice for all

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Using a .NET dll in Visual Studio C++ MFC project

    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/de...lregasmexe.asp
    You can then call the dll as any other COM dll.

  3. #3
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    381

    Re: Using a .NET dll in Visual Studio C++ MFC project

    OK!! Thanks!

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured