CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Location
    Coconut Creek, FL
    Posts
    1

    Unhappy C++ /CLI class Import

    Hello;


    I have a C++ unmanaged DLL that has a class that I want to import into a Managed C++ DLL with DLLIMPORT.

    does anyone know how to do that?

    I do not want to link with a LIB for the unmanaged C++ DLL.

    the managed C++ DLL uses managed and unmanaged code. When I do the static linking with the LIB things have worked. However I want to completely ISOLATE build issues. So I wanted to Just Import the class from the unmanaged DLL and create an instance or multiple instances of the objects in that DLL. there are also some structs that are defined which I can redefine in the managed DLL to make life simple.

    I am wrapping the Class currently and providing a layer with extra functionality for use in a C# project.

    thanks

    -Peter

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: C++ /CLI class Import

    You need to make some dirty tricks like these:
    http://www.codeguru.com/cpp/w-p/dll/...ticle.php/c123

Tags for this Thread

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