Champions,
Hope I have the correct bulletin board and hope someone can help me.
I have to re-write a VB ActiveX dll in C++ and amoungst other things,
copy its interface. It currently interfaces with a Visual Basic
client. Needless to say there is no useful documentation on the
current implementation available to me and I am not a Visual Basic
programmer.
Can anyone tell me the correct way to declare a C++ ActiveX dll in
Visual Basic so that I can test my dll's API?
The current VB test client (testing the VB ActiveX dll) includes the
code:
(General) (Declaration) section
Dim MyObject as aXObj 'name of ActiveX dll
then in the 3 API sub-routines:
Private Sub Command1_Click()
Set anObject = aXObj
...
anObject.APIFunctionCall
The variable 'anObject' is never explicitly declared.
Is that declaration and use correct and can I copy it for C++?
NB
On initialisation the dll performs operations which only need to be
performed once, loading some .ini file settings. I do not want to
have the dll re-initialised each time a call to one of the API
functions is made.
Thanks,
Mark