 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
ADC GmbH Guest
|
Posted: Thu Dec 21, 2006 5:35 pm Post subject: Adding ADO support to existing project |
|
|
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 |
|
| Back to top |
|
 |
Vassiliev V. V. Guest
|
Posted: Thu Dec 21, 2006 7:22 pm Post subject: Re: Adding ADO support to existing project |
|
|
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 (AT) adcgmbh (DOT) de> ???????/???????? ? ???????? ?????????:
news:458a71fd$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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 |
|
|
| 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
|
|