张
张剑波
Unregistered / Unconfirmed
GUEST, unregistred user!
var
CreateAccess:OleVariant;
begin
CreateAccess:=CreateOleObject('ADOX.Catalog');
CreateAccess.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/Aceco.mdb');
end;
——————————————————————————
以上是部分代码,在CreateOleObject('ADOX.Catalog');编译通不过,
[Error] Unit1.pas(46): Undeclared identifier: 'CreateOleObject'
————————————————————————————
要先引入ADOX类型库,我已经照李维的做了,project->import type library-->
rename--->create unit
______________________
怎么办?
CreateAccess:OleVariant;
begin
CreateAccess:=CreateOleObject('ADOX.Catalog');
CreateAccess.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/Aceco.mdb');
end;
——————————————————————————
以上是部分代码,在CreateOleObject('ADOX.Catalog');编译通不过,
[Error] Unit1.pas(46): Undeclared identifier: 'CreateOleObject'
————————————————————————————
要先引入ADOX类型库,我已经照李维的做了,project->import type library-->
rename--->create unit
______________________
怎么办?