打開或新建一個VS2010工程項目
View菜單
Other windows菜單
點擊Property Manager
彈出Property Manager框
裏面有Debug|Win32和Release|Win32選項
這2個選項可以設置Debug和Release的工程屬性設置
打開其中一個
雙擊Microsoft.Cpp.Win32.user會彈出Microsoft.Cpp.Win32.user Property Pages頁面,
點擊左邊VC++ Directories,會出現相應得頁面
可以在Include Directories與Library Directories裏面設置全局的頭文件和庫路徑,保存即可。