Using VC++ DLL from VB
-
Hi, i need to export some classes in DLL created in VC++, which is fine. I understand how to use exported functions in VC++ dll from VB, but how is it (if) possible to use exported classes from VB? I could not find any articles in MSDN / web regarding this. I would greatly appreaciate if somebody can direct me, where to get more information on this. many thanks Aby Philip
-
Hi, i need to export some classes in DLL created in VC++, which is fine. I understand how to use exported functions in VC++ dll from VB, but how is it (if) possible to use exported classes from VB? I could not find any articles in MSDN / web regarding this. I would greatly appreaciate if somebody can direct me, where to get more information on this. many thanks Aby Philip
The question arises: are you willing to export an object of the class from the DLL, or the definition of the class ? If it is the first one, then may I suggest that you create a global object inside the DLL's code, and export a function from the DLL which returns the address of this object. This, however, requires that you have the definition of the class available at the loading application in order to use it. I do not know for sure how well you can use C++ header files in a VB project, or if there is a conversion available. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.