Call a function in a shared library: Difference between revisions

Content added Content deleted
No edit summary
Line 345: Line 345:
dlclose xlib;
dlclose xlib;
;;</lang>
;;</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}}==
=={{header|PARI/GP}}==