Wednesday, May 13, 2009

_export, __export

Category

Modifiers, C++Builder keyword extensions

Form 1
class _export

Form 2

return_type _export

Form 3

data_type _export

Description
These modifiers are used to export classes, functions, and data.
The linker enters functions flagged with _export or __export into an export table for the module.
Using _export or __export eliminates the need for an EXPORTS section in your module definition file.
Functions that are not modified with _export or __export receive abbreviated prolog and epilog code, resulting in a smaller object file and slightly faster execution.

NB:
If you use _export or __export to export a function, that function will be exported by name rather than by ordinal (ordinal is usually more efficient).
If you want to change various attributes from the default, you'll need a module definition file.

No comments:

Post a Comment