Advertisement

DLL HELP!

Started by January 28, 2001 05:15 PM
1 comment, last by KaneBlackflame 24 years ago
I have been trying to make a dll in VC 6 that will work with VB. I have tryed the samples from planetsourcecode.com and the Visual Studio help files, but VB can''t seem to find the function I put in the dll. Can anyone give me an example that works under VC6?
"Victims...aren't we all?" -Brandon Lee, the Crow
You Export The Functions From The DLL useing a .def file or__declspec(dllexport)?
------------------------------------------------------------I wrote the best video game ever, then I woke up...
Advertisement


They also need to be compiled using the __stdcall convention. Once you have your library built, you will need to use a declare statement in VB to indicate what library the function is in, how to reference it, its params, etc..

There is nothing wrong with using this method to access functions in a C++ dll from VB.

It is somewhat easier to build a COM dll and use it from within VB (once you get some COM basics under your belt).

Luck..



This topic is closed to new replies.

Advertisement