Revision history for KeyPgDylibload
Revision [22542]
Last edited on 2019-01-03 08:18:19 by fxm [Added a note on the filename strings that include a character dot]Additions:
Note: If the ##//filename//## string (without extension) already includes a character dot (##.##), it may be mandatory to explicitly specify the filename extension to avoid any parser ambiguity.
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Dylibload** ( [[KeyPgByref|byref]] //filename// [[KeyPgAs|as]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgAny|any]] [[KeyPgPointer|Pointer]]
A ##[[KeyPgString|string]]## containing the filename of the library to load.
The ##[[KeyPgPointer|pointer]]## handle of the library loaded. Zero on error
##[[KeyPgDylibload|Dylibload]]## is used to link at runtime libraries to your program. This function does the link and returns a handle that must be used with ##[[KeyPgDylibsymbol|Dylibsymbol]]## when calling a function in the library and with ##[[KeyPgDylibfree|Dylibfree]]## when releasing the library.
See the dynamic loading example on the [[ProPgSharedLibraries|Shared Libraries]] page.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Dylibload""**##.
- ##[[KeyPgDylibsymbol|Dylibsymbol]]##
- ##[[KeyPgDylibfree|Dylibfree]]##
- ##[[KeyPgExport|Export]]##
A ##[[KeyPgString|string]]## containing the filename of the library to load.
The ##[[KeyPgPointer|pointer]]## handle of the library loaded. Zero on error
##[[KeyPgDylibload|Dylibload]]## is used to link at runtime libraries to your program. This function does the link and returns a handle that must be used with ##[[KeyPgDylibsymbol|Dylibsymbol]]## when calling a function in the library and with ##[[KeyPgDylibfree|Dylibfree]]## when releasing the library.
See the dynamic loading example on the [[ProPgSharedLibraries|Shared Libraries]] page.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Dylibload""**##.
- ##[[KeyPgDylibsymbol|Dylibsymbol]]##
- ##[[KeyPgDylibfree|Dylibfree]]##
- ##[[KeyPgExport|Export]]##
Deletions:
A ##[[KeyPgString string]]## containing the filename of the library to load.
The ##[[KeyPgPointer pointer]]## handle of the library loaded. Zero on error
##[[KeyPgDylibload Dylibload]]## is used to link at runtime libraries to your program. This function does the link and returns a handle that must be used with ##[[KeyPgDylibsymbol Dylibsymbol]]## when calling a function in the library and with ##[[KeyPgDylibfree Dylibfree]]## when releasing the library.
See the dynamic loading example on the [[ProPgSharedLibraries Shared Libraries]] page.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Dylibload""**##.
- ##[[KeyPgDylibsymbol Dylibsymbol]]##
- ##[[KeyPgDylibfree Dylibfree]]##
- ##[[KeyPgExport Export]]##
Revision [15272]
Edited on 2011-09-30 11:06:56 by DkLwikki [Link to ProPgSharedLibraries example instead of duplicating]Additions:
See the dynamic loading example on the [[ProPgSharedLibraries Shared Libraries]] page.
Deletions:
Revision [15266]
Edited on 2011-09-30 10:30:41 by DkLwikki [Link to Dylibsymbol example, instead of having this one-liner]Additions:
See the [[KeyPgDylibsymbol Dylibsymbol]] example.
Deletions:
Dim hndl As Any Ptr
hndl=DyLibLoad("MYLIB.DLL")
%%
Revision [14337]
Edited on 2009-08-29 21:53:43 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]Additions:
- New to ""FreeBASIC""
Deletions:
Revision [13707]
Edited on 2008-09-08 16:08:11 by AntoniGual [Remove CamelCase links in "New to FreeBASIC"]Additions:
The ##[[KeyPgPointer pointer]]## handle of the library loaded. Zero on error