关于使用ado的组件的参数传递的问题,急急急! 直接返回Recordset对象,返回值的类型可以是*IDispach 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在IDL文件中不认IDispach,需要包含什么文件? IDL文件不认IDispach,应该包含什么文件解决? 转载 acptvc 的回答!//helper.idl: IDL source for helper fileimport "msado15.idl";// R1ADOdrsExe.idl : IDL source for R1ADOdrsExe.dll//import "oaidl.idl";import "ocidl.idl";import "helper.idl"; // import ADO thru helper IDL file [ object, uuid(DF009B5B-A5CB-11D2-9062-00C04FB1784D), dual, helpstring("Ir1DisRS Interface"), pointer_default(unique) ] interface Ir1DisRS : IDispatch { [id(1), helpstring("method getRS")] HRESULT getRS([in,optional,defaultvalue(88)] short GY, [out, retval] _Recordset **ppRS); [propput, id(2), helpstring("property ConnString")] HRESULT ConnString([in] BSTR newVal); [id(3), helpstring("method UpdateBat")] HRESULT UpdateBat(_Recordset *ppRS); };[ uuid(DF009B4F-A5CB-11D2-9062-00C04FB1784D), version(1.0), helpstring("R1ADOdrsExe 1.0 Type Library")]library R1ADODRSEXELib{ importlib("stdole32.tlb"); importlib("stdole2.tlb"); importlib("c:\program files\common files\system\ado\msado15.dll"); // need ADO [ uuid(DF009B5C-A5CB-11D2-9062-00C04FB1784D), helpstring("r1DisRS Class") ] coclass r1DisRS { [default] interface Ir1DisRS; };} 通讯录的一点问题 AppView无法捕获CAknTextQueryDialog按键事件 MFC编记事本 vc怎么制随时间变化的曲线图 [高分求解]在日文系统中用Unicode显示中文的问题 问个入门问题 如何在CListCtrl中指定某一行为高亮 如何读取二进制的图像格式? 对话框标题栏右上角的红色关闭按钮中的“X”能去掉吗? 并行写的情况计算需要多少个线程 急急!!!回答正确,当场给分。ActiveX中使用动态创建的windows标准控件出现的问题 CEdit的回车事件是什么?就是那个ON_COMMAND(nID,Function);中的ON_COMMAND应该换成什么?
//helper.idl: IDL source for helper file
import "msado15.idl";// R1ADOdrsExe.idl : IDL source for R1ADOdrsExe.dll
//
import "oaidl.idl";
import "ocidl.idl";
import "helper.idl"; // import ADO thru helper IDL file
[
object,
uuid(DF009B5B-A5CB-11D2-9062-00C04FB1784D),
dual,
helpstring("Ir1DisRS Interface"),
pointer_default(unique)
]
interface Ir1DisRS : IDispatch
{
[id(1), helpstring("method getRS")] HRESULT getRS([in,optional,defaultvalue(88)] short GY, [out, retval] _Recordset **ppRS);
[propput, id(2), helpstring("property ConnString")] HRESULT ConnString([in] BSTR newVal);
[id(3), helpstring("method UpdateBat")] HRESULT UpdateBat(_Recordset *ppRS);
};[
uuid(DF009B4F-A5CB-11D2-9062-00C04FB1784D),
version(1.0),
helpstring("R1ADOdrsExe 1.0 Type Library")
]
library R1ADODRSEXELib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
importlib("c:\program files\common files\system\ado\msado15.dll"); // need ADO
[
uuid(DF009B5C-A5CB-11D2-9062-00C04FB1784D),
helpstring("r1DisRS Class")
]
coclass r1DisRS
{
[default] interface Ir1DisRS;
};
}