CreateInstance(__uuidof(Connection)) 不支持此接口解决方法
2017-11-08 19:09
288 查看
数据库对象mssql2005sp3专业版:
一般数据引用该路径文件#import "c:\\program files\\common files\\system\\ado\\msado15.dll" no_namespace rename("EOF", "adoEOF")。
但是,msado15.DLL XP 与 WIN7 的版本不一致
HRESULT hr = pConnection.CreateInstance("ADODB.Connection");创建接口失败,换成
#import "c:\\program files\\common files\\system\\ado\\msado20.tlb" no_namespace rename("EOF", "adoEOF")。使用这句话就可以了。
具体原因还在调查。
一般数据引用该路径文件#import "c:\\program files\\common files\\system\\ado\\msado15.dll" no_namespace rename("EOF", "adoEOF")。
但是,msado15.DLL XP 与 WIN7 的版本不一致
HRESULT hr = pConnection.CreateInstance("ADODB.Connection");创建接口失败,换成
HRESULT hr = pConnection.CreateInstance(_uuidof(Connection))也不行
#import "c:\\program files\\common files\\system\\ado\\msado20.tlb" no_namespace rename("EOF", "adoEOF")。使用这句话就可以了。具体原因还在调查。
相关文章推荐
- CreateInstance(__uuidof(Connection)) 不支持此接口解决方法
- CreateInstance(__uuidof(Connection)) 不支持此接口解决方法
- _ConnectionPtr.CreateInstance(__uuidof(Connection))“不支持此接口”错误解决
- CreateInstance(__uuidof(Connection))执行失败的解决办法
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- 重启IIS提示"不支持此接口"这个错误,无法正常重启的解决方法
- 有关“安装程序启动安装引擎失败:不支持此接口”错误的解决方法
- 解决方法:访问接口 "SQLNCLI10" 的架构行集 "DBSCHEMA_TABLES_INFO"。该访问接口支持该接口
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- N7系统VC6中添加OCX出现“不支持此接口” 问题的解决方法
- blocked because of many connection errors; unblock with 'mysqladmin flush-hosts;MySQL在远程访问时非常慢的解决方法;MySql链接慢的解决方法
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- WIN7系统VC6中添加OCX出现“不支持此接口” 问题的解决方法
- 装了Restorator,打开应用程序,提示不支持此接口的解决方法
- iOS 网络访问安全问题解决方法App Transport Security policy requires the use of a secure connection
- C++ CreateInstance("ADODB.Connection");创建接口失败的解决方法
- JBoss错误:"Could not obtain connection to any of these urls"的解决方法