Jump to content

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(ByteBuffer[, parm1[, parm2[, parm3[, parm4]]]]) ' ByteBuffer stores machine code bytes; works as a Sub
FUNCALL(AddrOfEntryPointEntryPoint[, parameters...]) ' worksEntryPoint asstores eitherfunction acall Sub or Functionaddress</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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.