🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by ADC GmbH Thu, 21 Dec 2006 11:35
Adding ADO support to existing project
#430
Author: ADC GmbH
Date: Thu, 21 Dec 2006 11:35
18 lines
1513 bytes
Hi all,

I've got the following problem:
We need to add database support to an existing, large project, currently 
developed with BDS 2006.
We added a Datamodule and dropped a TADOConnection and a TADOQuery.
So "#include <ADOBD>" is automaticly added so the source. But when we 
try to build the project, the compiler says something like
"E2015: ambiguity between the types 'ITransaction' and 
'Oledb::ITransaction'" This happens in file comsvcs.h.
(Sorry, I don't know the correct English compiler message, because I'm 
using the German version).

What have we done wrong and more important: What must we do to fix our 
problem?

Thanks in advance,
S�ren
Re: Adding ADO support to existing project
#431
Author: Vassiliev V. V.
Date: Thu, 21 Dec 2006 13:22
31 lines
2191 bytes
Try to change order of #include items - move #include <ADODB> up or down.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"ADC GmbH" <ew@adcgmbh.de> ???????/???????? ? ???????? ?????????: 
news:458a71fd$1@newsgroups.borland.com...
> Hi all,
>
> I've got the following problem:
> We need to add database support to an existing, large project, currently 
> developed with BDS 2006.
> We added a Datamodule and dropped a TADOConnection and a TADOQuery.
> So "#include <ADOBD>" is automaticly added so the source. But when we try 
> to build the project, the compiler says something like
> "E2015: ambiguity between the types 'ITransaction' and 
> 'Oledb::ITransaction'" This happens in file comsvcs.h.
> (Sorry, I don't know the correct English compiler message, because I'm 
> using the German version).
>
> What have we done wrong and more important: What must we do to fix our 
> problem?
>
> Thanks in advance,
> S�ren 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads