 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Neil Guest
|
Posted: Wed Dec 10, 2003 12:32 pm Post subject: TADoDataset.Recordset.Datasource |
|
|
What interfaces does TADODataset.Recordset.Datasource support?
From the msdn literature it looks like it should be an IRowset (as defined
in oledb.pas) however
Rowset := ADODataset1.Recordset.DataSource as IRowset;
where Rowset is an IRowset returns an Interface not supported error.
In fact iterating through all the GUIDs in OLEDB:
for i := Low(GuidArr) to High(GuidArr) do
begin
if Supports(AdoDataset1.Recordset.Datasource, GuidArr[i], Quack) then
ShowMessage(GUIDToString(GuidArr[i]));
end;
where Quack is IUnknown
suggests that it doesn't support any of them.
Any ideas where i'm going wrong?
Thanks
|
|
| Back to top |
|
 |
Viatcheslav V. Vassiliev Guest
|
Posted: Wed Dec 10, 2003 12:45 pm Post subject: Re: TADoDataset.Recordset.Datasource |
|
|
Recordset.DataSource should implement IDataSource
({7c0ffab3-cd84-11d0-949a-00a0c91110ed}).
You can get OLEDB interfaces
(including IRowset) with ADORecordsetConstruction
({00000283-0000-0010-8000-00AA006D2EA4}) interface (look implementation of
GetProviderNames in ADODB.pas).
To work with OLEDB interfaces without ADO you may try OLEDB Direct
([url]http://www.oledbdirect.com)[/url].
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Neil" <firstname (AT) ggpsystems (DOT) co.uk> сообщил/сообщила в новостях следующее:
news:3fd71214 (AT) newsgroups (DOT) borland.com...
| Quote: | What interfaces does TADODataset.Recordset.Datasource support?
From the msdn literature it looks like it should be an IRowset (as defined
in oledb.pas) however
Rowset := ADODataset1.Recordset.DataSource as IRowset;
where Rowset is an IRowset returns an Interface not supported error.
In fact iterating through all the GUIDs in OLEDB:
for i := Low(GuidArr) to High(GuidArr) do
begin
if Supports(AdoDataset1.Recordset.Datasource, GuidArr[i], Quack) then
ShowMessage(GUIDToString(GuidArr[i]));
end;
where Quack is IUnknown
suggests that it doesn't support any of them.
Any ideas where i'm going wrong?
Thanks
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|