How to export a class from a C++ dll to a VB Application  
Author Message
MelK





PostPosted: Wed Sep 06 01:04:14 CDT 2006 Top

Visual Studio C++ >> How to export a class from a C++ dll to a VB Application

hi all,

I have written a C++ dll which has a class.
I need to export this class so that it can be used by my Vb
Application.
Can anyone please provide me with some info on this.
A small piece of sample code will be very helpful.

Thanks in advance,
Veena

Visual Studio76  
 
 
Jochen





PostPosted: Wed Sep 06 01:04:14 CDT 2006 Top

Visual Studio C++ >> How to export a class from a C++ dll to a VB Application Hi veenuuu!

> I have written a C++ dll which has a class.
> I need to export this class so that it can be used by my Vb
> Application.

VB6?
There is no way to use a C++ class in VB6.
You need to write a COM-Class.

VB.NET:
There is also no way to use a (native) C++ class directly in .NET (C# / VB).
You need to make a managed wrapper class.

Greetings
Jochen