Call a function in a shared library: Difference between revisions

No edit summary
Line 345:
dlclose xlib;
;;</lang>
 
=={{header|OxygenBasic}}==
<lang oxygenbasic>
'Loading a shared library at run time and calling a function.
 
declare MessageBox(sys hWnd, String text,caption, sys utype)
 
sys user32 = LoadLibrary "user32.dll"
 
if user32 then @Messagebox = getProcAddress user32,"MessageBoxA"
 
if @MessageBox then MessageBox 0,"Hello","OxygenBasic",0
 
'...
 
FreeLibrary user32
</lang>
 
=={{header|PARI/GP}}==
Anonymous user