Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Windows 7 compiled project does not run on Windows XP anymore

Windows 7 compiled project does not run on Windows XP anymore

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocsharphelpquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joschwenk666
    wrote on last edited by
    #1

    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?

    E L 2 Replies Last reply
    0
    • J Joschwenk666

      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?

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      You could try to set up a remote debugger too... :)

      virtual void BeHappy() = 0;

      1 Reply Last reply
      0
      • J Joschwenk666

        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?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.
        #endif

        You 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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups