/STUB

Syntax:

/STUB:filename

Attaches an MS-DOS stub program to a Win32 program.

A stub program is invoked if the file is executed in MS-DOS. Usually, it displays an appropriate message; however, any valid MS-DOS application can be a stub program.

Specify a filename for the stub program after a colon (:). The linker checks filename to be sure that it is a valid MS-DOS executable file and issues an error if the file is not valid. The program must be an .EXE file; a .COM file is invalid for a stub program.

If you do not specify /STUB, the linker attaches a default stub program that generates the following message:

This program cannot be run in MS-DOS mode.

You can select this option in the visual development environment by typing the stub file name in the MS-DOS Stub File Name box in the Input category of the Link tab of the Project Settings dialog box.