I need to import a .lib file that return float numbers.
For example :
Code: Select all
Import "MyPlugin.lib"
RotateObject( iid.l , fx.f , fy.f , fz.f ) As "?RotateObject@@YAXHMMM@Z"
EndImport
MyFloat.f = RotateObject( ObjectID.l, FX.f, FY.f, FZ.f )
The problem is that I don't get MyFloat correctly as floating number.
I must do that to get things works :
MyInteger.l = RotateObject( ObjectID.l, FX.f, FY.f, FZ.f )
MyFloat.f = PeekF( @MyInteger )
Is it a PureBASIC import BUG or Am I doint something wrong ?