GetProcAddress fails with a VB compiled DLL

Why does GetProcAddress fail when used on a DLL compiled by VB. Also when I open the dll in DEPENDS (a dll spy program shipped with VB6) the required function in the dll is not shown.
AndyFAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
MirkwoodConnect With a Mentor Commented:
VB does not export any functions publicly in a DLL.
So although you have public modules with public functions in your project. VB will not export them to the outside world.
The only thing that you can do it create a class and make the functions member of this class. Make sure that your DLL is an ActiveX DLL.The client who needs this functions can now instantiate an instance of this class and call the functions.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.