ID Number: Q49445
5.03 5.05 5.10 5.13 5.20
MS-DOS
Summary:
SYMPTOMS
When using the Microsoft LINK utility versions 5.03 and later,
the following message may be generated when the application is
run:
The application you are about to run was designed for a
previous version of Windows.
In addition, the following message may be generated when the
resource compiler is run:
RW1030: The exetype of the program is not Windows
CAUSE
Microsoft LINK (LINK.EXE) versions 5.03 and later require that the
WINDOWS descriptor be placed in the EXETYPE section of your project's
.DEF (definitions) file if you are developing an application to run in
the Windows environment.
This marks a change from previous linker behavior in which it was not
necessary to specify the type of executable being created; a
Windows-compatible .EXE file was still produced. This is no longer
acceptable to LINK versions 5.03 and later.
RESOLUTION
To resolve this problem, place the following statement in the .DEF
file and then run the resource compiler on the .EXE:
EXETYPE WINDOWS
However, with LINK 5.2 the default version was not 3.0, so you
will need to specify the version in addition:
EXETYPE WINDOWS 3.0