2008-10-04 87 views

回答

2

我不知道如何在IDE做,但你總是CAND在編輯新的項目模板:

%PROGRAM_FILES%\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\ 

如果您使用Express版本有可能是在一個小變化路徑:

%PROGRAM_FILES%\Microsoft Visual Studio 9.0\Common7\IDE\{Version}\ProjectTemplates\ 

其中{}版本是您使用的是快遞的味道,VCSExpress,VBExpress等

的模板是zip文件,只需編輯項目變化:

<WarningLevel>3</WarningLevel> 

<WarningLevel>4</WarningLevel> 
+0

模板有哪些文件類型?這些目錄都不存在於我的機器上。 – 2008-10-04 00:57:40

0

我找不到我的機器,所以我只是搜查了WarningLevel所有文件上的任何項目模板或任何東西。我發現common.js在

%\Microsoft Visual Studio 9.0\VC\VCWizards\1033 

搜索的文件中顯示出WarningLevel出現在三個地方,線672,699和3354。我只是改變了三行讀

CLTool.WarningLevel = WarningLevel_3; 

CLTool.WarningLevel = WarningLevel_4; 

當我做了一個新項目它被設置在/ w4。所以這對我工作,不能保證它不會軟管你的機器。

相關問題