I have found just recently, when testing the new version of our application, that it does not work on Windows XP (the Windows XP mode -- virtual machine created on Windows 7). The application cannot be launched. The message box appears with the full path of the application displayed, and it says that "The parameter is not correct" (or possibly "the argument" -- translated from another human language). When the application is launched via the Total Commander, it displays the message box saying "Error executing program! (5)":
This happens since the application was compiled with VC++ 2008 or VC++ 2010. When compiled with VC++ 2005, the application behaved as expected.
However, this behaviour is observed only on Win XP in the virtual mode (and could be possibly observed on Win XP with rather not so much applications intalled). If the same application is launched on Win 7 with the development environment installed, no problem can be observed.
Trying hard to get the smallest application that behaves this way, I have discovered that the problem is in the manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>APS Marketing 3</description>
<!-- Identify the application security requirements (Vista): -->
<!-- Activate Windows Common Controls v6 usage (XP and Vista): -->
When the manifest file is removed from the project, the application works; however, the GUI is kind of less visually atractive (the Windows 2000 style both on Win XP and Win 7).
How can I fix the problem?
Thanks for your time and experience,