how to use VB 6 dll in VC++ 6

A

Ashutosh

Hi
I have a ActiveX DLL written in VB 6, the dll has two classes. I have to use
these classes in a VC 6.0 or VC +.NET 2003 unmanaged project.

In VC 6.0 I have no idea as how to use it..

In VC++ .NET 2003, I can add the reference to the VB dll, but i can't use
it. Please help me with the syntax.

Regards,
Ashutosh
 
M

Marcus Heege

VB6 produces COM Servers. To use these in VC++, you have to create a COM
Client. The #import directive can be quite useful that task.

Marcus
 
G

Gary Chang[MSFT]

Hi Ashutosh,

Please also chech the reply in the vc.language newsgroup's thread. One MVP
provided his suggestion there.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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