Wiki source for KeyPgExport


Show raw source

{{fbdoc item="title" value="EXPORT"}}----
Declaration specifier to indicate that a procedure in a DLL should be visible from other programs

{{fbdoc item="syntax"}}##
{ [[KeyPgSub|sub]] | [[KeyPgFunction|function]] } //proc_name// ( //argumentlist// ) [ [ [[KeyPgByrefFunction|byref]] ] [[KeyPgAs|as]] [[DataType|datatype]] ] **Export**
##
{{fbdoc item="desc"}}
If a function is declared with this clause in a DLL, it is added to the public export table, so external programs can dynamically link to it using [[KeyPgDylibsymbol|Dylibsymbol]].
(specifier to be put at procedure definition level, forbidden at procedure declaration line level)

{{fbdoc item="ex"}}
See the examples on the [[ProPgSharedLibraries|Shared Libraries]] page.

{{fbdoc item="lang"}}
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Export""**##.

{{fbdoc item="target"}}
- Dynamic link libraries are not available in DOS, as the OS doesn't support them.

{{fbdoc item="diff"}}
- New to Freebasic

{{fbdoc item="see"}}
- ##[[KeyPgDylibload|Dylibload]]##
- ##[[KeyPgDylibsymbol|Dylibsymbol]]##
- ##[[KeyPgAlias|Alias]]##

{{fbdoc item="back" value="CatPgModularizing|Modularizing"}}{{fbdoc item="back" value="CatPgProcedures|Procedures"}}
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode