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)

Example

See the examples on the Shared Libraries page.

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