Visual Studio的Express系列雖然在功能上肯定比不上完整的Team Suite版本,但是它是免費的,而且“該有的都有了”,所以它正在變得越來越流行。對于VC++ Express,它的不方便之處之一是不支持64位編程,而這個限制在安裝Windows SDK后,在默認的設置依然存在。有個叫作Jens的人搜集了各個論壇上程序員們分享的各種方案,現在似乎終于看到了曙光,按照他寫在上面blog里面的方法,可以讓VC++ Express完美的支持64位編程,包括AMD64和IA64。
于是我寫了一些腳本讓這種patch方法能夠自動化的執行。/Files/xcpp/XVCE.zip
這個腳本可以支持32位和64位的Windows。我只在Win6和Win7上面測試過這些腳本,在我用的幾臺電腦上全都完美運行,我以前寫的幾個64位程序項目文件都能順利的打開、編譯和運行。當然IA64的程序雖然能編譯但是我沒地方去運行它們(需要Intel的安騰處理器),所以不完全保證能用,但是應該能用。
下面是readme.txt:
1. Install Visual C++ 2008 Express (to default folder in C drive, or this patch will not work)
2. Install Windows SDK (Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5)
3. Open a command prompt, navigate to the folder contains this file, run setup_x86.bat or setup_x64.bat according to your system architecture
4. If there is no error in the command prompt, launch the Visual C++ 2008 Express IDE and build your X64 or IA64 projects
This work is based on the work by jenshuebel: http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
Thanks jenshuebel for the complete and accurate instructions, and thanks Microsoft for the free Visual C++ IDE.