CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    2

    Accessing VC++ Compiled Dll in dot net

    Any idea of referencing/consuming VC++ compiled dll
    in dot net [eg:CSharp]

    Scenario:
    A dll that is developed in VC++ 6.0 is there.
    It has to be used in the dot net environment.
    A VB compiled dll is easily referenced in the Visual Studio.net
    It easily creates a wrapper component for the usage of that dll.
    But when tried to add the dll that is compiled in VC++, it gives error
    stating "Could not create wrapper assembly for ActiveX type Library. You may need to register it."
    But it has been registered.

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    Is it a COM DLL or a DLL with C-style exports?

  3. #3
    Join Date
    May 2002
    Posts
    2
    It is a COM DLL

  4. #4
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: Com dll

    Originally posted by NRamesh
    It is a COM DLL
    If it is a COM DLL then you may simply use the Runtime.Interop services to use the DLL. Check out this site http://www.aspzone.com/articles/john/dotNETInterop/.
    It has a good tutorial on how to Mix the 2.
    Jared

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