VC++6.0 Debug状态下控件注册的问题
syy64 2006-02-17 11:33:35 我去年编的一个产生控件的程序,当时在Debug和Release状态下编译、连接、自动注册、运行,一切都正常正确,但后来我计算机换了一个硬盘,重新安装了windows2000专业版和vc++6.0(两者跟以前的都不是同样的光盘安装的),现在在我计算机上Release状态时,编译、连接、自动注册、运行,一切都正常正确,但Debug状态时,编译连接正确,自动注册时出现错误,这样调试起来极其不便,错误信息如下:
Microsoft Visual++ Debug Library
Debug Assertion Failed!
Program:C:\winnt\system32\regsvr32.exe
File:oletyplb.cpp
line:32
For information on how your program can cause an assertion
failure see the Visual C++ documentation on asserts
(Press Retry to debug the application)
当我按重试按钮后,出现如下错误提示:
Microsoft Visual++ Debug Library
Debug Assertion Failed!
Program:C:\winnt\system32\regsvr32.exe
File:afxcrit.cpp
line:74
For information on how your program can cause an assertion
failure see the Visual C++ documentation on asserts
可现在我在另一台计算机上试,在Debug和Release状态下编译、连接、自动注册、运行,一切都正常正确。
我的问题是:1、在我计算机上Debug下控件自动注册产生错误的原因;
2、如何解决这个错误,使之正确。