Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Modularizing › Export

Export

Definition specifier to indicate that a procedure in a DLL should be visible from other programs

Syntax

{ Sub | Function } proc_name ( argumentlist ) [ [ ByRef ] As datatype ] Export

Description

If a function is defined with this clause in a DLL, it is added to the public export table, so external programs can dynamically link to it using DyLibSymbol.
(specifier to be put at the level of the first line of procedure definition, forbidden at procedure declaration line level)

Remarks

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Export.

Platform Differences

  • Export has no effect in DOS dynamic link libraries (DXE's); all public procedures are exported.

Differences from QB

  • New to Freebasic

See also

Examples

See the examples on the Shared Libraries page.


Category: Modularizing
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally