Windows 7 compiled project does not run on Windows XP anymore
-
Hallo, I worked with a Windows XP / Visual Studio 2005 Development environment until a few weeks. Now I upgraded to Windows 7 / VS 2008, and after the conversion of my Project everything works fine in Windows 7. Then I tried to run my Win7/VS2008 compiled version at Windows XP, and I get an "Unhandled exception 0xC0000005 (ACCESS_VIOLATION)" Error. Are there some compiler Vars I have to set in my Visual Studio 2008 on Windows 7, that my Program works correctly in Windows XP? Or do I really have to set up Visual Studio 2008 in On a WinXP machine to find the error?
-
Hallo, I worked with a Windows XP / Visual Studio 2005 Development environment until a few weeks. Now I upgraded to Windows 7 / VS 2008, and after the conversion of my Project everything works fine in Windows 7. Then I tried to run my Win7/VS2008 compiled version at Windows XP, and I get an "Unhandled exception 0xC0000005 (ACCESS_VIOLATION)" Error. Are there some compiler Vars I have to set in my Visual Studio 2008 on Windows 7, that my Program works correctly in Windows XP? Or do I really have to set up Visual Studio 2008 in On a WinXP machine to find the error?
You could try to set up a remote debugger too... :)
virtual void BeHappy() = 0;
-
Hallo, I worked with a Windows XP / Visual Studio 2005 Development environment until a few weeks. Now I upgraded to Windows 7 / VS 2008, and after the conversion of my Project everything works fine in Windows 7. Then I tried to run my Win7/VS2008 compiled version at Windows XP, and I get an "Unhandled exception 0xC0000005 (ACCESS_VIOLATION)" Error. Are there some compiler Vars I have to set in my Visual Studio 2008 on Windows 7, that my Program works correctly in Windows XP? Or do I really have to set up Visual Studio 2008 in On a WinXP machine to find the error?
I no longer have an XP system here, but I came across something similar when first using Windows 7. Take a look at the following lines in
targetver.h
of your project.#ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
#define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows.
#endif#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
#endifYou may need to change the values to 0x0501 for Wndows XP. If that does not help then you will need to do some debugging to find where the violation occurs.
txtspeak is the realm of 9 year old children, not developers. Christian Graus