[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NAME
------------------------------------------------------------------------------
Purpose:
Create an application program and name it
Syntax 16:
NAME [appname] [apptype] [NEWFILES]
Syntax 32:
NAME [appname] [BASE = address]
Example:
NAME myapp
This command identifies the executable file as a program, as opposed to a
DLL. If it is used then it must be the first command, and the LIBRARY
command cannot also be used. If neither are specified then NAME is the
default.
appname is the application name as it is known by the operating system, and
cannot exceed 255 characters. If not specified, it defaults to the base name
of the executable file.
apptype is one of three optional keywords:
WINDOWAPI This is the default and creates a Windows-based program. The
program uses the API provided by Windows and must be executed within
Windows.
WINDOWCOMPAT This option creates a character-mode program to run in a text
window within a Windows session.
NOTWINDOWCOMPAT This creates a character-mode program which must run full
screen and cannot run in a text window within a Windows session.
The NEWFILES keyword notifies the loader that the program may be using an
installable file system. The synonym LONGNAMES is supported for
compatibility.
For 32 bit Windows programs the BASE keyword is used to set the base address
at which the operating system loads the .EXE, which defaults to 0x400000.
address is specified as an unsigned integer.
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson