Calling .NET class library from VC++ 6.0

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
 
M

Mattias Sjögren

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
 
G

Guest

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
 

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