I have recently inherited a peace of code that needs repair.
One of the problems is that a PB/DLL function is returning a
QUAD variable when called from VB.
The calling VB function is putting the result into a Long variable.
How can I return a QUAD value from PBDLL to VB.
PBDLL:
Function Test() EXPORT AS QUAD
Function = SomeQUADValue
End Function
VB: Declare Test Lib"blaBla.dll" Alias "Test"() as long
Sub VBTest()
Dim X as Long <<< What should this variable type be.
X = Test()
End Sub
------------------
One of the problems is that a PB/DLL function is returning a
QUAD variable when called from VB.
The calling VB function is putting the result into a Long variable.
How can I return a QUAD value from PBDLL to VB.
PBDLL:
Function Test() EXPORT AS QUAD
Function = SomeQUADValue
End Function
VB: Declare Test Lib"blaBla.dll" Alias "Test"() as long
Sub VBTest()
Dim X as Long <<< What should this variable type be.
X = Test()
End Sub
------------------
Comment