Visual Studio 2005/2008: How to compile C++ in 64 bit

When starting with a new project, sometimes it is helpful to keep x64 in mind from the very beginning.

  • From the "Build" menu, select "Configuration Manager".
  • Under the "Active Solution Platform", select "<New...>".
  • Select "x64" from the new platform type.
    (If it is not available, you need to modify your VS2005/VS2008 installation by inserting the DVD and selecting x64 compiler under C++)
  • Copy settings from "Win32".
  • Ensure that the "Create new project platforms" checkbox is ticked.
  • OK to save.

Now in your main window, select between x86 and x64 by changing the selection in the dropdown.

imageThats all there is to it!

Installing Eclipse with PyDev

Getting started with a new language can be a bit difficult, but it can be alot less frustrating with the right development environment helping you along the way with little trips here and there.

At time of writing, I have set this up with

  1. Eclipse v3.5 (162mb)
  2. Python v2.6.2 (13.8mb)
  3. PyDev

To install, download the required files listed above. Then

  • Install Python (anywhere)
  • Download and unzip Eclipse into a folder of your liking
  • Create a "workspace" directory for your python projects
  • Run Eclipse and select your workspace folder.
  • Click on "Help" > "Install New Software..."
  • Click "Add" and type "PyDev" for the name, using http://pydev.sourceforge.net/updates as the location.
  • Expand and select "Pydev".
  • Click through to finish.
  • Restart when prompted.

Configuring PyDev

  • Select "Window" > "Preferences"
  • Expand "Pydev" and select "Interpreter - Python"
  • Click "New" and give it a name.
  • Select "python.exe" from your Python install path.
  • Click OK and accept the defaults.
  • Save the preferences and now you're ready to go!
 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog