原文轉自 http://blog.csdn.net/yangjie569889321/article/details/28488151
最近將VC2002 代碼移植到VC2010,出現編譯錯誤:
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: The command "regsvr32 /s /c "D:\VC++Prj\source code\zutai\cha06\Meter\.\Debug\Meter.dll"
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: echo regsvr32 exec. time > ".\Debug\regsvr32.trg"
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: :VCEnd" exited with code 3.
英文版處理辦法:
Project->Configuration Properties->General->Target Extension設置為.ocx 或者.dll
Project->Configuration Properties->Linkerl->General ->Output File設置為$(OutDir)$(ProjectName)$(TargetExt)
中文版處理辦法:
在項目上點右鍵,選擇“屬性”->“配置屬性”->“常規”->“目標文件擴展名”,設置為.ocx 或者.dll
在項目上點右鍵,選擇“屬性”->“配置屬性”->“鏈接器”->“ 常規 ”->“輸出文件”,設置為$(OutDir)$(ProjectName)$(TargetExt)
