Call a foreign-language function: Difference between revisions

m
Line 352:
 
Lastly, there are at least two methods in FBSL to call machine code routines given their entry points:
<pre>CALLABSOLUTE(ByteBuffervarByteBuffer[, parm1[, parm2[, parm3[, parm4]]]]) ' ByteBuffervarByteBuffer stores machine code bytes
FUNCALL(EntryPointvarEntryPoint[, parameters...]) ' EntryPointvarEntryPoint stores function call address</pre>
 
All function calls support Integer, Quad, Single, Double and String parameters and returns. FBSL supports natively ASCIIZ strings only. Unicode strings require explicit ANSITOWIDE()/WIDETOANSI() transforms.