在看李维的Delphi5_ADO_MTS_COM_design
写这段代码时的问题
procedure TForm1.Button1Click(Sender: TObject);
var
adoc:IDispatch;
begin
adoc:=CreateOleObject('ADODB.Connection');
adoc.open("连接字符串")<-问题在这里
end;我已经用CreateOleObject函数得到了ADODB.Connection这个COM对象,为什么后面
不能用这个对象的OPEN方法呢?
写这段代码时的问题
procedure TForm1.Button1Click(Sender: TObject);
var
adoc:IDispatch;
begin
adoc:=CreateOleObject('ADODB.Connection');
adoc.open("连接字符串")<-问题在这里
end;我已经用CreateOleObject函数得到了ADODB.Connection这个COM对象,为什么后面
不能用这个对象的OPEN方法呢?
我猜想可能是Project这个菜单的Add to Repository,按了这个选项后出现的界面我就傻眼了,
要我填Title,Description,Page,Author,这这怎么填呀 TT
var
adoc:Variant;