Call a foreign-language function: Difference between revisions

m
Line 349:
<pre>#DLLDECLARE Gdiplus(GdiplusStartup AS SpawnIt, GdipLoadImageFromFile, GdiplusShutdown AS KillIt)
#DLLIMPORTS OpenGL32 ' all names here are case-insensitive</pre>
whereby you may start to use the three GDI+ function names (either directly or through arbitrary aliases as shown above), as well as the entire rangenamespace of OpenGL functions, in your script.
 
Lastly, there are at least two methods in FBSL to call machine code routines given their entry points: