Welcome! 登入 註冊
美寶首頁 美寶百科 美寶論壇 美寶落格 美寶地圖

Advanced

Visual Studio 2010 C++ 64 位元 console application ( x64 console ??) 的設定方法

本文主要參考資料來源為:http://blog.sina.com.cn/s/blog_6e0693f70100t6ip.html


原來的 win32 console application 為 32 位元程式
變數用到的記憶體總大小 只能到 2GB

如果變數多,記憶體要更大一點,可以將 console application 設成 64位元程式
不過 前提是作業系統必須是64位元的作業系統,如 win 7

步驟如下:


(1)照正常步驟建立一個 win32 console application
(2)建立好專案後,選擇主視窗上方主選單的 project, 再選出現的選單上的 properties,會出現 properties pages的視窗
(3)在 properties pages視窗 的右方選項中 選 configuration properties
(4)此時,右上角的 configuration manager 按鈕會呈現可以按的狀態,按下它,會出現configuration manager 的視窗
(5)在configuration manager 視窗的右上角 Active solution platform下面的下拉式清單中選擇,會出現一個New Solution Platform的視窗
(6)在這個新視窗的上方Type or select the new platform 下的下拉式清單中選擇 x64
(7)接著在configuration manager 視窗中按close,再接著在properties pages視窗中按「確定」
(8)這樣就好了



Edited 1 time(s). Last edit at 02/12/2012 01:57AM by RandomVariable.
(編輯記錄)