error MSB3073 解決方法(轉)


原文轉自 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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM