Exporting Dll functions in VB
What i want to do is create a dll in VB and export some functions from it.These functions are then used by other programs,some of which are in C++(Yes I know most people do it the other way,but I have my reasons).
Noe I can create dlls in VB using the ActiveX Dll option from the projects,but i have been able to find no documentation on how to export functions from a VB program.
Is this even possible?
quote:
Original post by Tanuj
Noe I can create dlls in VB using the ActiveX Dll option from the projects,but i have been able to find no documentation on how to export functions from a VB program.
Is this even possible?
Your ActiveX DLL must contain a public Class. The public properties and methods of this class are exposed via COM. To access this functionality in C/C++ look up info on the #import directive. It will import a type library (which in VB''s case is compiled into the DLL, so use the DLL filename) and declare "smart pointers" for you so you can easily create and use the class from VC++.
"All you need to do to learn circular logic is learn circular logic"
"All you need to do to learn circular logic is learn circular logic"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement