🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3343

How can I compile unit with both "ADODB.hpp" and "oledb.h" ?

#3343
From: Sorokoletov Gregory
Date: Thu, 03 Oct 2002 23:14
84 lines
2371 bytes
Hello,



I have one small question.



What can I do, for building unit, in which included both headers:



"ADODB.hpp" and  "oledb.h"





For example, if I simply write:



"Class.h"

:

class TAppendTraffic

{



  IDBInitialize    *pIDBInitialize;

  IDBCreateSession *pIDBCreateSession;

  IOpenRowset      *pIOpenRowsetFL;

  IRowsetFastLoad  *pIFastLoad;

  IAccessor        *pIAccessor;

};

:



The compiler generate the following errors:

 [C++ Error] AppendTraffic.h(107): E2015 Ambiguity between 'IDBInitialize'
and 'Oledb::IDBInitialize'

[C++ Error] AppendTraffic.h(108): E2015 Ambiguity between 'IDBCreateSession'
and 'Oledb::IDBCreateSession'

[C++ Error] AppendTraffic.h(108): E2015 Ambiguity between 'IDBCreateSession'
and 'Oledb::IDBCreateSession'

[C++ Error] AppendTraffic.h(111): E2015 Ambiguity between 'IAccessor' and
'Oledb::IAccessor'







One way is to add "namespace Oledb2" into source file "oledb.h", but I think
it is not good idea ::((





Sincerely,

Gregory



How can I compile unit with both "ADODB.hpp" and  "oledb.h"?

How can I compile unit with both "ADODB.hpp" and  "oledb.h" ?
Technical Details
Message-ID: <3d9ccf65$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,172b30594e383497,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-03 16:40:03 PST
From: "Sorokoletov Gregory" <gsorokoletov@sovintel.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How can I compile unit with both "ADODB.hpp" and  "oledb.h" ?
Date: Fri, 4 Oct 2002 03:14:45 +0400
Lines: 87
Organization: Sovintel
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.44.130.15
Message-ID: <3d9ccf65$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1033686885 212.44.130.15 (3 Oct 2002 16:14:45 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail