Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I export c++'s classes in a visual basic project using dlls

Status
Not open for further replies.

jdr23

Technical User
Aug 22, 2001
1
IT
Hallo, my name is Lorentz; this is my question:

How can I export a c++ class in a Visual Basic project using a visual c++ dll? What kind of dll have I to create?
Can I use a wizard? Can you make me an example of a simple dll that allows me to export a c++ class in a visual basic project? I'm sorry for my English, thanks for your help
 
create a dynamic link library type project.
The classes, variables and functions you should declare with
__declspec(dllexport) John Fill
1c.bmp


ivfmd@mail.md
 
I would like to see an example. I am trying to do something that is computationally intense in C++ and import and export the data from Excel. I need help on how to build the project and retrieve the data. Any guidance would help. Thanks.

kgarrett
 
I don't know how to import functions in VB, but in VisualC++ declare them as

__declspec(dllexport) __stdcall typeReturn functionName(argumentType1 arg1,...)
{
implementation here
} Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top