我在VC6.0下用ATL COM APPWizard生成了dll控件,在Build过程中执行到Performing registration 的时候停止不动,必须强制关闭任务管理器中的regsvr32进程才能结束,这是为什么,如何解决这一问题

解决方案 »

  1.   

    大家帮帮忙,弄了好几天都弄不出来,虽然在任务管理器中强制关闭regsvr32进程,控件也能正确使用,但是在wise installation system中做安装包时自注册该控件时出了问题,打出来的包不能正常运行,任务管理器中会出现GLJ*.tmp之类的进程,强行关闭安装才能继续,快急死我了
      

  2.   

    还有一个现象是,如果使用wise打包的时候,不选择自注册选项,则可以安装成功
      

  3.   

    如果不能注册,用Depends看它依赖的库,看是否缺少库,或者有的库的版本不对
      

  4.   

    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.