2006年8月9日 星期三

VC file extensions

最近因為工作需求,調整了一些工作開發環境
使得以往沒遇過的問題突然跑出來(應該是我較笨吧)
迫使我不得花點時間稍做了一些學習。

VC 相關的檔案,有很多不同的附檔名
但其用途究竟為何、有何重要及有何關聯性
排除一些基本的.. 剩下的我想很少人會去知道..
(謎之聲:可能只有我吧)

我這回遇到的問題是, 把原有的工作目錄做了更換.
如原是在 "PRJ_01" 更換到 "PRJ_02" 下時..
發生了.. resource 無法正確儲存到新工作目錄下
而會覆蓋回原本舊的工作目錄

最後, 發現在 *.opt 中, 會記錄了一些目錄資料
此檔為工作中繼檔, 可以刪除, vc 會自動重建
例如.. 原資料為
clipboard-2.jpg
當換了新目錄後, 若只更換相關設定之路徑
理當應該改為下圖所示
clipboard-11.jpg
但若無手動刪除此檔案, 則內容不會改變..
除了資源檔會儲存於不正確的目錄
還會自動產生出原有的目錄結構(若原有目錄己刪除)

底下是我收集自網路及MSDN中
對於相關附檔名的解釋














































































































































































































































File extensionTypeContents
.asmxSourceDeployment file.
.aspSourceActive Server Page file.
.atpProjectApplication template project file.
.bmp, .dib, .gif, .jpg, .jpe, .pngResourceGeneral image files.
.bscCompilingThe browser code file.
.cpp; .cSourceMain source code files for your application.
.curResourceCursor bitmap graphic file.
.dbpProjectDatabase project file.
.discoSourceThe dynamic discovery document file. Handles XML Web service discovery.
.exe, .dllProjectExecutable or dynamic-link library files.
.hSourceThe header, or include, file.
.htm, .html, .xsp, .asp, .htc, .hta, .xmlResourceCommon Web files.
.HxCProjectHelp project file.
.icoResourceIcon bitmap graphic file.
.idbCompilingThe state file, containing dependency information between source files and class definitions, which can be used by the compiler during minimal rebuild and incremental compilation. Use the /Fd compiler option to specify the name of the .idb file. See /Gm (Enable Minimal Rebuild) for more information.
.idlCompilingThe interface definition language file. See Interface Definition (IDL) File in the Platform SDK for more information.
.ilkLinkingIncremental link file. See /INCREMENTAL for more information.
.mapLinkingA text file containing linker information. Use the /Fm compiler option to name the map file. See /MAP for more information.
.ncbSolutionThe no compile browser file.
.obj, .o Object files, compiled but not linked.
.pchDebugPrecompiled header file.
.pdbDebugThe program debug database file. See What Are .pdb Files? for more information.
.rc, .rc2ResourceResource script files to generate resources.
.sbrCompilingSource browser intermediate file. The input file for BSCMAKE.
.slnSolutionThe solution file.
.suoSolutionThe solution options file.
.srfProjectThe server response file. This file contains the HTML code for an ATL Server application.
.txtResourceText file, usually the "readme" file.
.vapProjectVisual Studio Analyzer Project file.
.vbgSolutionCompatible project group file.
.vbp, .vip, .vbprojProjectThe Visual Basic project file.
.vcprojProjectThe Visual C++ project file. See Project Files and Makefiles for more information.
.vdprojProjectThe Visual Studio deployment project file.
.vmxProjectThe macro project file.
.vupProjectThe utility project file.

































File extensionSourceContents
.pchDebugPrecompiled header file.
.pdbDebugThe program debug database file.

Intermediate files generated by the compiler:





















File extensionSourceContents
.bscCompilingThe browser code file.
.idbCompilingThe state file, containing dependency information between source files and class definitions.
.sbrCompilingSource browser intermediate file. The input file for BSCMAKE.

Intermediate files generated by the linker:
















File extensionSourceContents
.ilkLinkingIncremental link file. See /INCREMENTAL for more information.
.mapLinkingA text file containing linker information. Use the /Fm compiler option to name the map file. See /MAP for more information.

Intermediate files generated by Visual Studio:


































File extensionSourceContents
.apsResourceBinary version of the current resource script file; used for quick loading.
.ncbSolutionThis file is a binary file used by ClassView and is specific to the local machine.
.oObject files, compiled but not linked.
.objObject files, compiled but not linked.
.optThis is a binary file that is the workspace options file for the local computer.
.plgbuild log file. It is an HTML file which you can view in i.e. or other browsers.

Output files (most often they are our products):

























File extension SourceContents
.exeOutputyour product.
.dllOutputyour DLL product.
.libOutputthe library file which stores information about your .dll file.
.ocxOutputour ActiveX controls.


Other files:











File extension SourceContents
.sccOthersource safe file (contribution from Indivara in this forum.)






參考資料:
Clean Visual Studio Workspaces
MSDN
以上資料屬原著作人所有