C++ COM Interop

  • Thread starter Thread starter Santy
  • Start date Start date
S

Santy

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.tlb". Ok, no problem....
BUT ... C# class uses System.Collections.... 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 "..\\csharpClass\\myClass.tlb"

thx in advance.
 
Back
Top