问题
I seem to have completely the *emphasized text*opposite*emphasized text* problem to everyone else... I'm trying to have my program (C++/CLI - Visual Studio 2010) run on any machine - but it's only working on 64 bit machines...
I checked my Configuration Manager and when I try and choose a new platform, "x64" is the only one that exists?
There is no other option - and I'm a bit stuck for ideas :(
回答1:
In the configuration manager, for each project it lists the Platform (x86, x64, etc.). Just because the project is set to a certain platform in the Configuration manager, doesn't mean the project is actually targeting that platform.
Instead, the platform selected in the configuration manager, means it will build that project according to the build settings selected for that platform. So, if (for a given project) in the configuration you have selected "Any CPU", you need to go to that project's build settings (RMB on project->Properties->Build) Choose the Platform "Any CPU" in the top drop down to see the build settings for that platform. Then, you'll notice lower down there is a "Platform target:" drop down. That is the setting that decides what platform is targeted when you build this Configuration/Platform.
So you could actually set it up so that when you build using "Any CPU", that it is building targetting x64.
Make sense?
来源:https://stackoverflow.com/questions/5343814/visual-studio-configuration-manager-x64-only-option