BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Adding ADO support to existing project

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
ADC GmbH
Guest





PostPosted: Thu Dec 21, 2006 5:35 pm    Post subject: Adding ADO support to existing project Reply with 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
Vassiliev V. V.
Guest





PostPosted: Thu Dec 21, 2006 7:22 pm    Post subject: Re: Adding ADO support to existing project Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.