PRB: LINK versions 5.03 to 5.2 Require EXETYPE WINDOWS Stmt. (49445)
The information in this article applies to:
- Microsoft LINK for MS-DOS 5.03
- Microsoft LINK for MS-DOS 5.05
- Microsoft LINK for MS-DOS 5.1
- Microsoft LINK for MS-DOS 5.13
This article was previously published under Q49445 SYMPTOMS
An attempt to run an application built with Microsoft LINK fails
and the application generates the following message:
The application you are about to run was designed for a
previous version of Windows.
In addition, an attempt to process the application with the
Microsoft Windows Resource Compiler (RC) fails and RC generates the
following message:
RW1030: The exetype of the program is not Windows
CAUSE
To develop an application for the Microsoft Windows operating
system, LINK requires an EXETYPE WINDOWS statement in the
application's module-definition (.DEF) file.
This behavior is different from previous and subsequent versions of
the linker in which it was not necessary to specify the type of the
executable file. Previously, a particular LINK version was used
only to develop applications for the Windows operating system.
RESOLUTION
Modify the application's module definition file to include the
following statement. Then rebuild the application and use the
Resource Compiler to process the output file.
However, in LINK version 5.2, the default version of Microsoft
Windows is not version 3.0. To build an application compatible with
Windows 3.0, specify the version number in the EXETYPE statement as
follows:
For LINK version 5.30 and later, the default version of Microsoft
Windows is version 3.0. It is not necessary to include the EXETYPE
statement, but it is recommended.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kb16bitonly KB49445 |
---|
|