Haven't tried the XP/2005 box yet, but on the 2008/2010 box I found something interesting...
If you go to the property page for the VS project, under the "General" section there is an option for "Platform Toolset". The default option is "v100" but if you change it to "v90" the program runs fine... I'm not sure exactly what this option entails or why it does that...but a warning to VS 2010 users.