Highlighted
Absent Member.
Absent Member.
7499 views

Windows XP Error - *.exe is not a valid win32 application

Jump to solution

Hi there,

we are working with Visual Studio 2012 with Update 2 and Visual Cobol 2.1 (2.1.0.01044) on Windows 7.

If we create and compile a native cobol program (exe) and run it on a Windows XP maschine, we get the error "*.exe is not a valid win32 application".

Is there a knowing issue?

Greetings
Dennis

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Windows XP Error - *.exe is not a valid win32 application

Jump to solution

The C++ runtime and libraries that accompany Visual Studio 2012 contain dependencies on several Windows API functions that exist only on Windows Vista and higher versions of the OS.  This means that native applications built with Visual COBOL for Visual Studio 2012, which are depandant on these C++ libraries will fail to load and execute on Windows XP.

If you wish to target Windows XP for your application then you must use Visual COBOL for Visual Studio 2010.

The Visual COBOL documentation states the following under OS Requirements.

Visual COBOL for Visual Studio 2012 is not supported on versions of Windows earlier than Windows 7.

This will be changed to reflect Vista as the minimum OS as Microsoft added support for Vista after the initial launch of Visual Studio 2012.

Thanks.

View solution in original post

0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: Windows XP Error - *.exe is not a valid win32 application

Jump to solution

Updated Visual Studio 2012 to Update 3. Same result.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Windows XP Error - *.exe is not a valid win32 application

Jump to solution

The C++ runtime and libraries that accompany Visual Studio 2012 contain dependencies on several Windows API functions that exist only on Windows Vista and higher versions of the OS.  This means that native applications built with Visual COBOL for Visual Studio 2012, which are depandant on these C++ libraries will fail to load and execute on Windows XP.

If you wish to target Windows XP for your application then you must use Visual COBOL for Visual Studio 2010.

The Visual COBOL documentation states the following under OS Requirements.

Visual COBOL for Visual Studio 2012 is not supported on versions of Windows earlier than Windows 7.

This will be changed to reflect Vista as the minimum OS as Microsoft added support for Vista after the initial launch of Visual Studio 2012.

Thanks.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Windows XP Error - *.exe is not a valid win32 application

Jump to solution

Thanks for the info.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.