Calling .NET class library from VC++ 6.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have created a class library in Visual Studio .nET 2003. I can call
classes from this library using VB6 by using tlbexp to create a tlb file and
regasm to register the .dll file created for my class library. This works
great. Is there a way I can call classes in my .dll file from MS VC++ 6.0?
Thank you.

Rahul
 
Is there a way I can call classes in my .dll file from MS VC++ 6.0?

Yes, since you can use COM from C++. You can for example #import the
typelib.



Mattias
 
Hi,

thank you for your reply. Could you provide some sample code?

So if i #import the .tlb file, I should be able to use the classes in my
..dll file?

Thank you.

Rahul
 
Back
Top