yaobin
yaobin

Reputation: 2526

How could I know which bit-version of C++ program I'm building in VS2008?

As the subject says, I'm building my C++ program in Visual Studio 2008. But how could I know if the program built is targeted to 32-bit or 64-bit? I looked around the project properties but couldn't find an option to specify this.

I looked at this article: In Visual Studio, how to correctly build an application for 64-bit machines? But it looks like discussing about C# - I couldn't find any "Any CPU"-like configurations.

Upvotes: 1

Views: 87

Answers (1)

STLDev
STLDev

Reputation: 6164

  • Open Visual Studio 2008
  • Load your project
  • Once your project is loaded, the VS2008 toolbar should look something like this:

Visual Studio 2008 Toolbar

  • Drop down the list that says "Win32" and choose "Configuration Manager...". This will open the Configuration Manager dialog:

Visual Studio 2008 Configuration Manager Dialog

  • Under "Active Solution Platform", click the drop down list
  • Select ""
  • The "New Solution Platform" opens:

Visual Studio 2008 New Solution Platform Dialog

  • Click on the top drop-down (labeled "Type or select the new platform:")
  • One of the options, at the bottom of the list, should read "x64". Select it.
  • In the "Copy settings from:" drop-down, choose ""
  • Check the "Create new project platforms" checkbox
  • Press the "OK" button

  • The New Solution Platform dialog closes, and now the x64 platform will be available for you to use in the Configuration Manager dialog.

  • In the Configuration Manager dialog, for each project in your solution, choose the appropriate platform:

Visual Studio 2008 Configuration Manager with x64 platform

  • Keep in mind that once you have the x64 platform added to Configuration Manager, you'll probably have to setup appropriate configurations (Release, etc.)

Upvotes: 2

Related Questions