Have a vb6 app that used functions from a dll written in c++. I have referenced the dll and have used dependecy to view the entry points of the dll. I have a declare function setup as follows:
Declare Function DllGetClassObject Lib "myfile.dll" (ByRef object1 as long, object2 as long, object3 as long) As Long
According to the dependency viewer there are five functions. The DllGetClassObject is one of them. The function has numerous objects. I am only interested in calling three of them. There are probably 10 total. If I use the code as shown I get argument is not optional error. Does this mean I have to enter all objects in the declare statement? If so is there anyway to pass them to the function as an array. If it does not mean this, what would be missing to produce this error?
Thanks for any advice
Declare Function DllGetClassObject Lib "myfile.dll" (ByRef object1 as long, object2 as long, object3 as long) As Long
According to the dependency viewer there are five functions. The DllGetClassObject is one of them. The function has numerous objects. I am only interested in calling three of them. There are probably 10 total. If I use the code as shown I get argument is not optional error. Does this mean I have to enter all objects in the declare statement? If so is there anyway to pass them to the function as an array. If it does not mean this, what would be missing to produce this error?
Thanks for any advice