by Robert Knepp (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
Wanna know how to use those functions you just wrote in C++ in VB using a DLL? Here ya go!
Assumes
The zip file holds two projects, one for VB6 (called 'UseDLL') and one for MSVC++6 (called 'DLLTest'). After compiling the C++ project and placing the resulting DLL into your 'system32' directory, you should be able to run the VB project that calls functions from DLL!
Note that the VB project is pre-compiled, where the DLL is in code form only.
Download Using C++ DLL in VB (11 KB)