原文转自 http://blog.csdn.net/yangjie569889321/article/details/28488151
最近将VC2002 代码移植到VC2010,出现编译错误:
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(183,5): error MSB3073: The command "regsvr32 /s /c "D:VC++Prjsource codezutaicha06Meter.DebugMeter.dll"
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(183,5): error MSB3073: echo regsvr32 exec. time > ".Debug
egsvr32.trg"
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.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)