[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LIBRARY (module definition command)
------------------------------------------------------------------------------
Purpose:
Create a DLL and name it
Syntax 16:
LIBRARY [libname] [PRIVATELIB] [WINDOWAPI]
Syntax 32:
LIBRARY [libname] [BASE = address]
Example:
LIBRARY mydll
This command sets the internal name of the program and indicates that the
resulting executable will be a dynamic link library. If used, LIBRARY must
be the first command. If a name is not specified then the internal name is
set to the base name of the executable file without its extension.
The PRIVATELIB keyword tells Windows that only one program can use the DLL
at a time.
The WINDOWAPI keyword is the default and indicates that the DLL is a Windows
or PM application which can only execute in a Windows or PM environment. For
Windows this removes the need to use the RC command or a resource compiler
if the program has no resources.
For 32 bit Windows programs the BASE keyword is used to set the base address
at which the operating system loads the DLL, which defaults to 0x10000000.
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson