| Group: | Dynamically Linked Library |
| See also: | dlcallex dlopen dlclose dlquery |
| Function: | dlcall | |
| Description: | dlcall calls a function defined in a dynamically linked library. |
| Usage: | dlcall ({handle}, n, {x1, x2, ..., x12 }) | |
| Input: | ||
| handle | scalar (optional), handle of the dll to load the function from. &nl; If it is omitted in all dlls is searched for the function | |
| n | string, name of function | |
| x1...x12 | array (optional), argument for the function | |
| Output: | ||
| err | scalar, result from the function | |
//for Unix
h=dlopen("gplm.so")
z=0
dlcall("gplmetabilo", 1|1|1,1,1,1,1,1,1,z)
z
Contents of dlcall [1,] 0 Contents of z [1,] 2.1353
//for Windows
h=dlopen("gplm.dll")
z=0
dlcall("_gplmetabilo", 1|1|1,1,1,1,1,1,1,z)
z
Contents of dlcall [1,] 0 Contents of z [1,] 2.1353
| Group: | Dynamically Linked Library |
| See also: | dlcallex dlopen dlclose dlquery |