Call a function in a shared library: Difference between revisions

Content added Content deleted
No edit summary
Line 1,620: Line 1,620:
=={{header|QB64}}==
=={{header|QB64}}==
<lang vb>
<lang vb>
Option _Explicit

Declare Dynamic Library "Kernel32"
Declare Dynamic Library "Kernel32"
Sub SetLastError (ByVal dwErr As Long)
Sub SetLastError (ByVal dwErr As Long)
Line 1,629: Line 1,627:
SetLastError 20
SetLastError 20
Print GetLastError</lang>
Print GetLastError</lang>

=={{header|R}}==
=={{header|R}}==
This is possible in R in only a few limited ways. If the library function one wishes to call is a (C-level) R function (of type SEXP), then one may call
This is possible in R in only a few limited ways. If the library function one wishes to call is a (C-level) R function (of type SEXP), then one may call