我想在一个Atl的DLL项目中添加ADO的引用 可是死活不成功 郁闷
在stdafx.h文件我添加了
#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","ADOEOF")
使用:
__interface IDBOperator : IDispatch
{
[id(1), helpstring("Execute sql string")] HRESULT ExecuteString([in] BSTR sql, [in] VARIANT aParam, [out,retval] _Recordset **prstOutput);
};
错误:
c:\documents and settings\administrator\my documents\visual studio projects\cdboperatorlib\cdboperatorlib\dboperator.h(20): error MIDL2011 : unresolved type declaration : _Recordset [ Parameter 'prstOutput' of Procedure 'ExecuteString' ( Interface 'IDBOperator' ) ]