C++ COM Interop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Santy

    #1

    C++ COM Interop

    Hi. I made a class in c#. Enabled the COM Interop and DLL and
    TLB(myClass.tlb ) was made.

    After this, I created a C++ project. I wanna use the previous .NET/COM c#
    class in my new C++ project. Used #import "myClass.tl b". Ok, no problem....
    BUT ... C# class uses System.Collecti ons.... what #import should I use to
    compile ok? This are my current #imports in C++:

    #import <mscoree.tlb>
    #import <mscorlib.tlb >
    #import <System.tlb>
    #import "..\\csharpClas s\\myClass.tlb"

    thx in advance.


  • Santy

    #2
    Re: C++ COM Interop

    btw, I CAN'T use managed C++... must be PURE C++ ( with COM #import
    support )


    Comment

    Working...