vs2008常用操作汇总
1、OpenCV2.1環境配置:
???? (1)、Tools-->Options-->Projects and Solutions-->VC++Drectories: Show directories for選擇include files,加入目錄 D:/Program Files/OpenCV2.1/include/opencv ;Show directories for選擇library files,加入目錄 D:/Program Files/OpenCV2.1/lib?。????
?? ?(2)、為項目的Debug配置增加依賴的庫:選中項目名-->點擊鼠標右鍵-->選擇Properties-->Configuration中選擇Active(Debug)-->Configuration Properties-->Linker-->Input-->Additional Dependencies:cxcore210d.lib cv210d.lib highgui210d.lib。
???? (3)、為項目的Release配置增加依賴的庫:選中項目名-->點擊鼠標右鍵-->選擇Properties-->Configuration中選擇Release-->Configuration Properties-->Linker-->Input-->Additional Dependencies:cxcore210.lib cv210.lib highgui210.lib。
???? (4)、配置屬性-字符集修改為使用“多字節字符集” (由于2008默認是以Unicode字符集編譯的):選中項目名-->點擊鼠標右鍵-->選擇Properties-->Configuration中選擇Active(Debug)-->Configuration Properties-->General-->Project Defaults-->Character Set:Use Multi-Byte Character Set,點擊應用;Configuration中選擇Release-->Configuration Properties-->General-->Project Defaults-->Character Set:Use Multi-Byte Character Set,點擊應用。
2、代碼對齊:Alt + F8(需改變設置才能生效,步驟:Tools-->Options-->Environment-->Help-->Keyboard-->Apply the following additional keyboard mapping scheme:Visual Studio 6)。
3、Release或Debug版互換:Build-->Configuration Manager-->Active solution configuration:選擇Release或Debug即可(簡單方法:工具欄上有一下拉列表框,在其中直接選擇Debug或Release即可)。
4、僅查看輸出窗口中的error或Warnings:View-->Other Windows-->Error List(快捷鍵:Ctrl + / + E)。
5、標簽快捷鍵的使用:(1)、設置標簽(清除一個標簽):Ctrl + K + K;(2)、查看上一標簽:Ctrl + K + P;(3)、查看下一標簽:Ctrl + K + N;(4)、顯示標簽窗口:Ctrl + K + W,此窗口中有一些標簽操作按鈕,使用起來很方便。
6、出現:error C2859 vc90.idb is not the idb file that was used when this precompiled header was created。。,解決方法:選中工程-->點擊右鍵屬性-->Configuration Properties-->C/C++-->Output Files-->Program Database File Name中的$(IntDir)/vc90.pdb改為$(IntDir)/(工程名).pdb即可。
總結
以上是生活随笔為你收集整理的vs2008常用操作汇总的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 基于C++的OpenCV常用函数
- 下一篇: WIN32 C++ 遍历文件夹