C++ COM Interop

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top