Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LIBRARY Statement
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
─────LIBRARY Statement──────────────────────────────────────────────────────
Syntax: LIBRARY [libraryname] [initialization] [PRIVATELIB]
This statement identifies the main output file as a DLL. It can
also specify a library name and the initialization required.
LIBRARY or NAME must precede all other statements. If LIBRARY is
specified, the NAME statement cannot be used. If neither is used,
the default is NAME. Fields can appear in any order.
If <libraryname> is specified, it becomes the name of the library
as it is known by OS/2 or Windows. This name can be any valid
filename. If <libraryname> contains a space, begins with a
nonalphabetic character, or is a reserved word, enclose the name
in double quotation marks. The name cannot exceed 255 characters
(not including surrounding quotation marks). The default is the
base name of the DLL.
See: ◄Reserved Words►
The <initialization> defines the library initialization required:
<initialization> Meaning
INITGLOBAL Default. The initialization routine is called
only when the library is initially loaded into
memory.
INITINSTANCE The initialization routine is called each time
a new process gains access to the DLL. This
keyword applies only to OS/2.
Specify PRIVATELIB to tell Windows that only one application may
use the DLL.
-♦-