ATL控件 在Performing registration时停止不动

dolyp 2007-08-02 10:33:31
我在VC6.0下用ATL COM APPWizard生成了dll控件,在Build过程中执行到Performing registration 的时候停止不动,必须强制关闭任务管理器中的regsvr32进程才能结束,这是为什么,如何解决这一问题
...全文
525 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
蒋晟 2007-08-06
  • 打赏
  • 举报
回复
The best way to debug a module that fails to register is by opening REGSVR32.EXE in a debugger and step through your DllRegisterServer code.

All that regsvr32 does is call your DllRegisterServer exported function and that does all the work. So you just have to debug that, from within your project specificy regsvr32 as the executable to run, the name of your compiled (DEBUG) DLL as the
argument and place a breakpoint in DllRegisterServer. If you do't reach the breakpoint then something is preventing your DLL from loading.
ReverseEngineering 2007-08-05
  • 打赏
  • 举报
回复
反复注册,也许会在系统里留下问题。
ReverseEngineering 2007-08-05
  • 打赏
  • 举报
回复
换台机器试试,所有机器都这样吗?
dolyp 2007-08-02
  • 打赏
  • 举报
回复
关键是我要打包给客户,所以绝对不能让客户自己注册控件。但用wise选择自注册时就没法安装,所以我觉得问题还是出现在com控件的注册问题上,这是不是VC的bug啊
dolyp 2007-08-02
  • 打赏
  • 举报
回复
手工注册能成功,也能正常使用
ouyh12345 2007-08-02
  • 打赏
  • 举报
回复
如果不能注册,用Depends看它依赖的库,看是否缺少库,或者有的库的版本不对
ouyh12345 2007-08-02
  • 打赏
  • 举报
回复
手工注册控件,能成功吗?
dolyp 2007-08-02
  • 打赏
  • 举报
回复
还有一个现象是,如果使用wise打包的时候,不选择自注册选项,则可以安装成功
dolyp 2007-08-02
  • 打赏
  • 举报
回复
大家帮帮忙,弄了好几天都弄不出来,虽然在任务管理器中强制关闭regsvr32进程,控件也能正确使用,但是在wise installation system中做安装包时自注册该控件时出了问题,打出来的包不能正常运行,任务管理器中会出现GLJ*.tmp之类的进程,强行关闭安装才能继续,快急死我了

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧