Revision history for KeyPgLib


Revision [20292]

Last edited on 2016-02-10 16:02:02 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] { [[KeyPgSub|sub]] | [[KeyPgFunction|function]] } //proc_name// **lib** "//libname//" [ [[KeyPgAlias|alias]] "//symbol_name//" ] ( //arguments list// ) [[KeyPgAs|as]] //return_type//
[[KeyPgExternBlock|extern]] "//mangling//" lib "//libname//"
end [[KeyPgExternBlock|extern]]
[[KeyPgType|type]] //T//
[[KeyPgAs|as]] [[KeyPgInteger|integer]] dummy
[[KeyPgDeclare|declare]] [[KeyPgConstructor|constructor]] **lib** "//libname//" [ [[KeyPgAlias|alias]] "//symbol_name//" ] ( //arguments list// )
end [[KeyPgType|type]]
In ##[[KeyPgSub|Sub]]## or ##[[KeyPgFunction|Function]]## declarations, and also in class method declarations (including constructors and destructors), ##**lib**## indicates the library containing the function. Libraries specified in this way are linked in as if ##[[KeyPgInclib|#inclib "libname"]]## or ##[[CompilerOptl|-l libname]]## had been used.
##**lib**## can also be used with [[KeyPgExternBlock|Extern ... End Extern blocks]] to specifiy a ##**lib**## for all declarations inside.
- ##[[KeyPgDeclare|Declare]]##
- ##[[KeyPgInclib|#inclib]]##
Deletions:
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **lib** "//libname//" [ [[KeyPgAlias alias]] "//symbol_name//" ] ( //arguments list// ) [[KeyPgAs as]] //return_type//
[[KeyPgExternBlock extern]] "//mangling//" lib "//libname//"
end [[KeyPgExternBlock extern]]
[[KeyPgType type]] //T//
[[KeyPgAs as]] [[KeyPgInteger integer]] dummy
[[KeyPgDeclare declare]] [[KeyPgConstructor constructor]] **lib** "//libname//" [ [[KeyPgAlias alias]] "//symbol_name//" ] ( //arguments list// )
end [[KeyPgType type]]
In ##[[KeyPgSub Sub]]## or ##[[KeyPgFunction Function]]## declarations, and also in class method declarations (including constructors and destructors), ##**lib**## indicates the library containing the function. Libraries specified in this way are linked in as if ##[[KeyPgInclib #inclib "libname"]]## or ##[[CompilerOptl -l libname]]## had been used.
##**lib**## can also be used with [[KeyPgExternBlock Extern ... End Extern blocks]] to specifiy a ##**lib**## for all declarations inside.
- ##[[KeyPgDeclare Declare]]##
- ##[[KeyPgInclib #inclib]]##


Revision [14849]

Edited on 2010-10-05 12:46:51 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **lib** "//libname//" [ [[KeyPgAlias alias]] "//symbol_name//" ] ( //arguments list// ) [[KeyPgAs as]] //return_type//
[[KeyPgDeclare declare]] [[KeyPgConstructor constructor]] **lib** "//libname//" [ [[KeyPgAlias alias]] "//symbol_name//" ] ( //arguments list// )
Deletions:
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs as]] //return_type//
[[KeyPgDeclare declare]] [[KeyPgConstructor constructor]] **lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//"()


Revision [14848]

Edited on 2010-10-05 12:45:56 by DkLwikki [Updated to show use with EXTERN blocks and methods]
Additions:
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs as]] //return_type//

[[KeyPgExternBlock extern]] "//mangling//" lib "//libname//"
//declarative statements//
end [[KeyPgExternBlock extern]]

[[KeyPgType type]] //T//
[[KeyPgAs as]] [[KeyPgInteger integer]] dummy
[[KeyPgDeclare declare]] [[KeyPgConstructor constructor]] **lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//"()
end [[KeyPgType type]]
In ##[[KeyPgSub Sub]]## or ##[[KeyPgFunction Function]]## declarations, and also in class method declarations (including constructors and destructors), ##**lib**## indicates the library containing the function. Libraries specified in this way are linked in as if ##[[KeyPgInclib #inclib "libname"]]## or ##[[CompilerOptl -l libname]]## had been used.

##**lib**## can also be used with [[KeyPgExternBlock Extern ... End Extern blocks]] to specifiy a ##**lib**## for all declarations inside.
Deletions:
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **Lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs as]] //return_type//
In ##[[KeyPgSub Sub]]## and ##[[KeyPgFunction Function]]## declarations, ##**Lib**## indicates the library containing the function. Libraries specified in this way are linked as if the library had been specified with ##[[KeyPgInclib #inclib]]## or ##[[CompilerOptl -l]]##.
When specifying ##//libname//##, the extension of the libraries file name should not be included. For example, if the declaration is meant to reference the file ##libsomething.a##, ##libsomething.dll.a##, ##something.dll## or ##something.so##, use ##**Lib** "something"##.


Revision [14844]

Edited on 2010-10-05 11:53:39 by DkLwikki [Updated: LIB isn't just for .dll's/.so's]
Additions:
Specifies the library where a sub or function can be found as part of a declaration
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **Lib** "//libname//" [[KeyPgAlias alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs as]] //return_type//
In ##[[KeyPgSub Sub]]## and ##[[KeyPgFunction Function]]## declarations, ##**Lib**## indicates the library containing the function. Libraries specified in this way are linked as if the library had been specified with ##[[KeyPgInclib #inclib]]## or ##[[CompilerOptl -l]]##.
When specifying ##//libname//##, the extension of the libraries file name should not be included. For example, if the declaration is meant to reference the file ##libsomething.a##, ##libsomething.dll.a##, ##something.dll## or ##something.so##, use ##**Lib** "something"##.
Deletions:
Specifies the DLL where a sub or function can be found as part of a declaration
[[KeyPgDeclare declare]] { [[KeyPgSub sub]] | [[KeyPgFunction function]] } //proc_name// **Lib** "//dllname//" [[KeyPgAlias alias]] "//symbol_name//" ( //arguments list// ) [[KeyPgAs as]] //return_type//
In ##[[KeyPgSub Sub]]## and ##[[KeyPgFunction Function]]## declarations, ##**Lib**## indicates the dll containing the function. Libraries specified in this way are linked as if the library had been specified with ##[[KeyPgInclib #inclib]]##.
When specifying ##//dllname//##, do not include the extension of the file name. For example, if the declaration is meant to reference the file ##mydll.dll## or ##mydll.so##, use ##**Lib** "mydll"##.


Revision [14364]

Edited on 2009-08-29 21:54:42 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [10509]

The oldest known version of this page was created on 2007-08-01 22:47:53 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode