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.


Revision [20210]

Edited on 2016-02-10 15:59:26 by DkLwikki [Update link format]
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]]##
Deletions:
[[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]]##


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:
See the [[KeyPgDylibsymbol Dylibsymbol]] example.


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:
{{fbdoc item="filename" value="examples/manual/module/dylibload.bas"}}%%(freebasic)
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:
- New to FreeBASIC


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
Deletions:
The ##[[KeyPgPointer pointer]]## handle of the library loaded.


Revision [13251]

The oldest known version of this page was created on 2008-04-26 11:11:23 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode