Archived

This topic is now archived and is closed to further replies.

KaneBlackflame

DLL HELP!

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster


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..



Share this post


Link to post
Share on other sites