Code: Select all
OpenLibrary(0, "VantagePro.dll")
f.f
CallCFunction(0, "GetDllVersion_V")
!FSTP dword [v_f]
Debug f
Dri
Code: Select all
OpenLibrary(0, "VantagePro.dll")
f.f
CallCFunction(0, "GetDllVersion_V")
!FSTP dword [v_f]
Debug f
How should the CallFunction() / CallCFunction() know that theDr. Dri wrote:PureBasic should add the FSTP depending on the return variable type
I mean, if you use CallFunction in a purebasic local float variable, it should be automaticFloHimself wrote:How should the CallFunction() / CallCFunction() know that the
DLL Function returns a float?
Only way i see is Fred giving us a way to declare external Functions like
in VB.
Code: Select all
myFloat.f = CallFunction(lib, "function", parameters)
That would totally confuse! I suppose that many people useI mean, if you use CallFunction in a purebasic local float variable, it should be automatic