title: Configuring 64-bit compilation inside Visual Studio 2008 Express Edition (VS2008EE)
body: <p>I am making an attempt at building 64-bit native C++ applications under Visual Studio 2008 Express Edition Service Pack 1 (with some relevant Windows SDK(s) installed afterwards), in the IDE and from the command line.  This is on a Windows XP Professional x64 Edition Version 2003 Service Pack 2 machine. </p>
  
  <p>I know that the Professional versions might provide true VS IDE integration, but I'm specifically looking to do this from within Visual Studio 2008 Express Edition.</p>
  
  <p>But, I'm having a bit of trouble in the project configuration in the Visual Studio 2008 Express IDE, and am hoping someone can answer what might be the problem. The key goal is to be able to build 64-bit native apps <em>from within the IDE itself</em>, as well as from the command line by executing batch files like <code>vcvarsall.bat</code> or similar batch file.</p>
  
  <p>Here is what I tried so far:</p>
  
  <p>I installed <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=3254C868-BCB9-412C-95C6-D100C872EC60" rel="nofollow noreferrer">Visual Studio 2008 Express Editions with SP1</a>, which installed <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4377F86D-C913-4B5C-B87E-EF72E5B4E065&amp;displaylang=en" rel="nofollow noreferrer">some type of SDK</a>, but I believe not the right one containing 64-bit compilers (but didn't know it at the time).</p>
  
  <p>I built a hello world Win32 Console app, and looked in the manifest file that was generated for the executable. I found "x86" in that manifest file, which is not 64-bit AFAICT, so I did more research.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/86562/what-is-missing-in-the-visual-studio-2008-express-editions">What is “missing” in the Visual Studio 2008 Express Editions?</a>. I saw some replies, one of which was has <a href="https://stackoverflow.com/questions/86562/what-is-missing-in-the-visual-studio-2008-express-editions/86873#86873">a list of missing features</a> which has "64-bit Visual C++ Tools" as one of those missing features.</p>
  
  <p>But, on the <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_C.2B.2B_Express" rel="nofollow noreferrer">wikipedia entry</a> we see:</p>
  
  <blockquote>
    <p>True integration of 64bit compilers to the Visual C++ 2008 Express Edition is possible, but remains cumbersome. <sup><a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#cite_note-8" rel="nofollow noreferrer">9</a></sup></p>
  </blockquote>
  
  <p>So, I tried the instructions in that <sup><a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#cite_note-8" rel="nofollow noreferrer">9</a></sup> link given above. That link actually refers to <a href="http://msdn.microsoft.com/en-us/library/9yb4317s.aspx" rel="nofollow noreferrer">How to: Configure Visual C++ Projects to Target 64-Bit Platforms</a>. I walked through the steps on that page, but got to the point where they instruct you to do the following:</p>
  
  <blockquote>
    <p>Click the Type or select the new platform drop-down arrow, and then select a 64-bit platform.</p>
  </blockquote>
  
  <p>But there are no entries in the drop down. </p>
  
  <p>I referred again to the SDK page on Wikipedia, specifically the <a href="http://en.wikipedia.org/wiki/Windows_SDK#64-bit_development" rel="nofollow noreferrer">64-bit development section</a>, which states:</p>
  
  <blockquote>
    <p>The most recently released Windows SDK for Windows Server 2008 and .NET Framework 3.5 contains the updated x86, x64 and Itanium (IA-64) Visual Studio 2008 compilers.</p>
  </blockquote>
  
  <p>So Googling/MSDN'ing around a bit for "Windows SDK for Windows Server 2008 and .NET Framework 3.5" landed me at the <a href="http://msdn.microsoft.com/en-us/windows/dd146047.aspx" rel="nofollow noreferrer">Which SDK do I install?</a> page. From that page I see <a href="http://go.microsoft.com/fwlink/?LinkID=150217" rel="nofollow noreferrer">Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1</a> released on Aug-09 since it is the most recent one. Its release notes seemed to imply that it contained 64-bit compilers at least, but didn't explicitly state that it patched the Visual Studio IDE to provide a way to select x64 targets, and that is what I'm after.</p>
  
  <p>I tried the <a href="http://msdn.microsoft.com/en-us/library/9yb4317s.aspx" rel="nofollow noreferrer">How to: Configure Visual C++ Projects to Target 64-Bit Platforms</a> instructions again, and got the same empty drop-down list.</p>
  
  <p>So I thought then that the compilers aren't installed, so I tried executing the <code>vcvarsall.bat amd64</code> command, and ran into the bug described at <a href="http://www.visualstudiodev.com/visual-c-express-edition/more-vs2008-windows-sdk-server-2008-problems-79038.shtml" rel="nofollow noreferrer">More VS2008 and Windows SDK Server 2008 problems</a>.  </p>
  
  <p>Even if I hack the <code>vcvarsall.bat</code> batch file to get command-line builds working, will the IDE still be "crippled" by not being able to configure Visual Studio projects to build using the 64-bit compiler?</p>
  
  <p>Thanks!</p>
  
  <p>bg</p>