error PRJ0019: A tool returned an error code from "Performing registration" 如题 build的时候发生了这样的错误...实在不明就里拉...貌似说是注册的问题..但是我在release下却能正确的注册。debug却不行。各位大佬..帮忙看看... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Build Log ------- Build started: Project: CallToActiveX, Configuration: Release|Win32 ------- Command Lines Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000024.rsp" with contents[/D "NDEBUG" /env win32 /tlb "Release/CallToActiveX.tlb" /h "CallToActiveXidl.h".\CallToActiveX.idl]Creating command line "midl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000024.rsp /nologo"Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000025.rsp" with contents[/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_USRDLL" /D "_SIP_DLL_" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release/CallToActiveX.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP.\SipRegMgr.cpp.\SipCall.cpp.\CallToActiveXPropPage.cpp.\CallToActiveXCtrl.cpp.\CallToActiveX.cpp.\CallPanel.cpp]Creating command line "cl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000025.rsp /nologo"Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000026.rsp" with contents[/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_USRDLL" /D "_SIP_DLL_" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yc"stdafx.h" /Fp"Release/CallToActiveX.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP.\stdafx.cpp]Creating command line "cl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000026.rsp /nologo"Creating command line "rc.exe /d "NDEBUG" /d "_AFXDLL" /l 0x804 /I "Release" /fo"Release/CallToActiveX.res" .\CallToActiveX.rc"Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000027.rsp" with contents[/OUT:"Release/CallToActiveX.ocx" /INCREMENTAL:NO /NOLOGO /LIBPATH:"..\lib\release\\" /DLL /DEF:".\CallToActiveX.def" /DEBUG /PDB:"Release/CallToActiveX.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /IMPLIB:"Release/CallToActiveX.lib" /MACHINE:X86 sipAgent.lib.\Release\CallPanel.obj.\Release\CallToActiveX.obj.\Release\CallToActiveXCtrl.obj.\Release\CallToActiveXPropPage.obj.\Release\SipCall.obj.\Release\SipRegMgr.obj.\Release\stdafx.obj.\Release\CallToActiveX.res]Creating command line "link.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000027.rsp"Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\BAT000028.bat" with contents[@echo offregsvr32 /s /c "e:\CallToActiveX\CallToActiveX\Release\CallToActiveX.ocx"if errorlevel 1 goto VCReportErrorgoto VCEnd:VCReportErrorecho Project : error PRJ0019: A tool returned an error code from "Performing registration"exit 1:VCEnd]Creating command line "e:\CallToActiveX\CallToActiveX\Release\BAT000028.bat" Output Window Creating Type Library...Processing .\CallToActiveX.idlCallToActiveX.idlProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.idloaidl.idlProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objidl.idlobjidl.idlProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\unknwn.idlunknwn.idlProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\wtypes.idlwtypes.idlProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\basetsd.hbasetsd.hProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\guiddef.hguiddef.hProcessing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acfoaidl.acfCompiling...stdafx.cppCompiling...SipRegMgr.cppSipCall.cppCallToActiveXPropPage.cppCallToActiveXCtrl.cppCallToActiveX.cppCallPanel.cppGenerating Code...Compiling resources...Linking... Creating library Release/CallToActiveX.lib and object Release/CallToActiveX.expPerforming registrationProject : error PRJ0019: A tool returned an error code from "Performing registration" Results Build log was saved at "file://e:\CallToActiveX\CallToActiveX\Release\BuildLog.htm"CallToActiveX - 1 error(s), 0 warning(s) 你生成的Com组件在build过程中注册的时候发生了错误,Release可以,你看Debug下,你的相关各种需要的dll,其他文件等是否都有,比较跟Release目录的不同.. 还有,最好Release目录下用到的dll等用Release版本的,Debug目录下用对应dll的Debug版本.. 权限不够,用管理员权限打开Visual studio,然后再试一下 将原来的regsvr32 /u卸载掉,再注册试试看另外看看你的Debug和Release有什么设置的差别?引用到的目录有没有不同? 把程序用到的其它DLL等复制一份到Debug目录下。 已经OK了 其中的某个DLL中还引用了别的DLL,没有添加到工程目录,是这个引起的..不过比较诡异的是为什么当初release的没有这个错误,debug的确有呵呵结贴 收工 大侠啊,快现身啊 一个关于socket的简单问题。 请教:对CString 如此赋值为何不行呢? 大家看看这个菜单问题 请教如何消除ListCtrl翻滚时的“动画”效果 网络蚂蚁是用MFC开发的吗? 在很复杂的树控件里面怎么知道用户点击的节点在链表里面对应的其他内容呢 我做的骑士旅行问题。在递归的返回中,可能有点错。大家帮忙看看 mfc下调用vlc播放ps流视频文件 写了个程序,遇到点问题 缓冲区的数据重复采集如何处理?请教! Dialog初始化画线的问题
[
/D "NDEBUG" /env win32 /tlb "Release/CallToActiveX.tlb" /h "CallToActiveXidl.h"
.\CallToActiveX.idl
]
Creating command line "midl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000024.rsp /nologo"
Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000025.rsp" with contents
[
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_USRDLL" /D "_SIP_DLL_" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release/CallToActiveX.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP
.\SipRegMgr.cpp
.\SipCall.cpp
.\CallToActiveXPropPage.cpp
.\CallToActiveXCtrl.cpp
.\CallToActiveX.cpp
.\CallPanel.cpp
]
Creating command line "cl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000025.rsp /nologo"
Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000026.rsp" with contents
[
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_USRDLL" /D "_SIP_DLL_" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yc"stdafx.h" /Fp"Release/CallToActiveX.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP
.\stdafx.cpp
]
Creating command line "cl.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000026.rsp /nologo"
Creating command line "rc.exe /d "NDEBUG" /d "_AFXDLL" /l 0x804 /I "Release" /fo"Release/CallToActiveX.res" .\CallToActiveX.rc"
Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\RSP000027.rsp" with contents
[
/OUT:"Release/CallToActiveX.ocx" /INCREMENTAL:NO /NOLOGO /LIBPATH:"..\lib\release\\" /DLL /DEF:".\CallToActiveX.def" /DEBUG /PDB:"Release/CallToActiveX.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /IMPLIB:"Release/CallToActiveX.lib" /MACHINE:X86 sipAgent.lib
.\Release\CallPanel.obj
.\Release\CallToActiveX.obj
.\Release\CallToActiveXCtrl.obj
.\Release\CallToActiveXPropPage.obj
.\Release\SipCall.obj
.\Release\SipRegMgr.obj
.\Release\stdafx.obj
.\Release\CallToActiveX.res
]
Creating command line "link.exe @e:\CallToActiveX\CallToActiveX\Release\RSP000027.rsp"
Creating temporary file "e:\CallToActiveX\CallToActiveX\Release\BAT000028.bat" with contents
[
@echo off
regsvr32 /s /c "e:\CallToActiveX\CallToActiveX\Release\CallToActiveX.ocx"
if errorlevel 1 goto VCReportError
goto VCEnd
:VCReportError
echo Project : error PRJ0019: A tool returned an error code from "Performing registration"
exit 1
:VCEnd
]
Creating command line "e:\CallToActiveX\CallToActiveX\Release\BAT000028.bat"
Output Window Creating Type Library...
Processing .\CallToActiveX.idl
CallToActiveX.idl
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.idl
oaidl.idl
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objidl.idl
objidl.idl
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\unknwn.idl
unknwn.idl
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\wtypes.idl
wtypes.idl
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\basetsd.h
basetsd.h
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\guiddef.h
guiddef.h
Processing D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acf
oaidl.acf
Compiling...
stdafx.cpp
Compiling...
SipRegMgr.cpp
SipCall.cpp
CallToActiveXPropPage.cpp
CallToActiveXCtrl.cpp
CallToActiveX.cpp
CallPanel.cpp
Generating Code...
Compiling resources...
Linking...
Creating library Release/CallToActiveX.lib and object Release/CallToActiveX.exp
Performing registration
Project : error PRJ0019: A tool returned an error code from "Performing registration"
Results Build log was saved at "file://e:\CallToActiveX\CallToActiveX\Release\BuildLog.htm"
CallToActiveX - 1 error(s), 0 warning(s)
Release可以,你看Debug下,你的相关各种需要的dll,其他文件等是否都有,比较跟Release目录的不同..
另外看看你的Debug和Release有什么设置的差别?引用到的目录有没有不同?
不过比较诡异的是为什么当初release的没有这个错误,debug的确有
呵呵
结贴 收工