_ConnectionPtr.CreateInstance(__uuidof(Connection)) 返回 E_NOINTERFACE
2013-05-15 17:52
676 查看
依据microsoft的说明(http://support.microsoft.com/kb/2517589),解决方法是将
[/code]
#import "msado15.dll" no_namespace rename("EOF","EndOfFile")
改为
#import "msado60_Backcompat.tlb" no_namespace rename("EOF","EndOfFile")或者直接写成以下代码
#ifdef _WIN64 #define TLB_FILE_NAME "msado60_Backcompat_x64.tlb" #else #define TLB_FILE_NAME "msado60_Backcompat_i386.tlb" #endif #import TLB_FILE_NAME no_namespace rename("EOF", "adoEOF")
[/code]
相关文章推荐
- _ConnectionPtr.CreateInstance(__uuidof(Connection))“不支持此接口”错误解决
- VC下这样创建实例m_pRecordset.CreateInstance(_uuidof(Connection))不一定成功!...
- VC下这样创建实例m_pRecordset.CreateInstance(_uuidof(Connection))不一定成功!...
- ADO CreateInstance(__uuidof(Connection))失败
- _ConnectionPtr CreateInstance失败
- CreateInstance(__uuidof(Connection)) 不支持此接口解决方法
- OleCreateStaticFromData返回E_OUTOFMEMORY
- EF Core使用SQL调用返回其他类型的查询 ASP.NET Core 2.0 使用NLog实现日志记录 CSS 3D transforms cSharp:use Activator.CreateInstance with an Interface? SqlHelper DBHelper C# Thread.Abort方法真的让线程停止了吗? 注意!你的Thread.Abort方法真
- SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”
- 关于ADF JDeveloper 11g 的 Unable to create an instance of the Java Virtual Machine
- m_pConnection.CreateInstance( "ADODB.Connection ") 执行错误 结果总是为NULL
- m_pCon.CreateInstance("ADODB.Connection"); 出现错误
- oracle jdeveloper 11g 安装到quickstart选择启动 异常:Unable to create an instance of the Java Virtual Machine
- Xaml cannot create an instance of “X”
- Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine
- sqldeveloper不能启动,显示Unable to create an instance of the Java Virtual Machine...的解决办法
- Unable to create an instance of the Java Virtual Machine Located at path:
- mavne运行异常:Cannot create instance of interfacetifac
- Jfinal报错Can not create instance of class: demo.DemoConfig
- SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”