Use the STUB statement to add a DOS .EXE file to the beginning of the .EXE or .DLL file that you are creating.
| STUB statement syntax |
|---|
|
The linker searches for the file-name you specify as the stub in the following order:
The stub function will be invoked whenever your .EXE or .DLL file is run under DOS. Typically, the stub displays the message that the program cannot run in DOS mode, and ends the program.
If you do not use the STUB statement, the linker adds its own standard stub for this purpose.
The following example adds the DOS .EXE file STOPIT.EXE to the beginning of the file that you are creating:
STUB 'STOPIT.EXE'