佚名通过本文主要向大家介绍了regdb e classnotreg,regdb,regdb root,应该怎样解决南海问题,应该如何解决台湾问题等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: REGDB_E_CLASSNOTREG是什么错误啊?应该怎么解决?
描述:
描述:
在ISAPI里使用ADO:
如下代码:
#import "c:\program files\common files\system\ado\msado15.dll" \ no_namespace rename ("EOF", "adoEOF")
_ConnectionPtr _pConnection;
_pConnection.CreateInstance(__uuidof(Connection));
在控制台或者窗口程序中都没有问题,但是在ISAPI里编写服务器程序的时候
最后一句却报错,Debug窗口提示对象类型没有注册,
返回的错误号是REGDB_E_CLASSNOTREG
MSDN上这么说:
A specified class is not registered in the registration database. Also can indicate that the type of server you requested in the CLSCTX enumeration is not registered or the values for the server types in the registry are corrupt.
registration database是什么东东啊?为什么别的地方使用没问题,放到ISAPI里就会有问题?
请大虾指教,谢谢。