Jump to content

C++ exe Compatibility XP Vista

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
TyK

TyK

    Newbie

  • Members
  • Pip
  • 1 posts
Hey,

I just recently made a c++ program in Visual Studio 2008. It compiles and works fine on my vista machine. However when I copy it to my XP machine the executable does not work. Windows brings up an error message about the format. So I assume this is a problem in compatibility between Windows XP and Windows Vista or between 64 bit and 32 bit (my vista machine is 64 bit whereas my XP machine is 32 bit).

Is there any way to specify in Visual Studio 2008 to make a 32 bit XP application?

#2
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
I don't believe there is a way to specify it but it's the way your code is written. If it runs on a 64bit but not a 32bit OS, there must be something in the code that will only run on a 64bit machine.

You must edit you code to try and find what is 64bit specific in your code. I don't know if there is any tools out there to help you do such a thing, there should be because it would be very helpful tool to many programmers.
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It could also be a compiler option. If you downloaded a 64bit compiler, however, you may be stuck.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog