VC6.0 动态库或控件代码移植到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)

 

 

 

你可能感兴趣的:(c,File,command,extension,2010)