Call a function in a shared library: Difference between revisions

Content added Content deleted
(add RPL)
m (BaCon and BBC BASIC moved to the BASIC section.)
Line 133: Line 133:
dllclient.ahk
dllclient.ahk
<syntaxhighlight lang="autohotkey">Msgbox, hello from client</syntaxhighlight>
<syntaxhighlight lang="autohotkey">Msgbox, hello from client</syntaxhighlight>
=={{header|BaCon}}==


=={{header|BASIC}}==
==={{header|BaCon}}===
<syntaxhighlight lang="qbasic">' Call a dynamic library function
<syntaxhighlight lang="qbasic">' Call a dynamic library function
PROTO j0
PROTO j0
Line 149: Line 150:
prompt$ ./calllib
prompt$ ./calllib
0.765198</pre>
0.765198</pre>

=={{header|BBC BASIC}}==
==={{header|BBC BASIC}}===
{{works with|BBC BASIC for Windows}}
{{works with|BBC BASIC for Windows}}
The following shared libraries are automatically available: ADVAPI32.DLL, COMCTL32.DLL, COMDLG32.DLL, GDI32.DLL, KERNEL32.DLL, SHELL32.DLL, USER32.DLL and WINMM.DLL.
The following shared libraries are automatically available: ADVAPI32.DLL, COMCTL32.DLL, COMDLG32.DLL, GDI32.DLL, KERNEL32.DLL, SHELL32.DLL, USER32.DLL and WINMM.DLL.
<syntaxhighlight lang="bbcbasic"> SYS "MessageBox", @hwnd%, "This is a test message", 0, 0
<syntaxhighlight lang="bbcbasic"> SYS "MessageBox", @hwnd%, "This is a test message", 0, 0
</syntaxhighlight>
</syntaxhighlight>

=={{header|C}}==
=={{header|C}}==
{{works with|POSIX|.1-2001}}
{{works with|POSIX|.1-2001}}