I am trying to use PureBasic to call a number of 3rd party dlls using
CallCFunction (to drive a digital camera). Unfortunately, one of them requires that I pass a 64-bit (double) floating point variable (representing
integration time in seconds). Is there a straightforward way to convert a 32-bit floating point to get around the lack of 64-bit representation in Pure Basic?
double float in CallCFunction
the Dll probably expects a double value rather than a pointer to a double, try this:
do that for all double arguments.
Code: Select all
x.double
CallFunction( #DLL,"Function", x\a,x\b)