Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 77289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:48:25+00:00 2026-05-10T20:48:25+00:00

G’day everyone I’m a newbie to C++ and even more so to Borland Turbo

  • 0

G’day everyone

I’m a newbie to C++ and even more so to Borland Turbo C++ Explorer. I’ve just encountered this compile error. Any clues as to how to fix it?

[C++ Error] comsvcs.h(3209): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction' [C++ Error] comsvcs.h(3275): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction' [C++ Error] comsvcs.h(16197): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction' [C++ Error] comsvcs.h(16293): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction' 

The code where the first one occurs is

EXTERN_C const IID IID_ICreateWithTransactionEx;  #if defined(__cplusplus) && !defined(CINTERFACE)      MIDL_INTERFACE('455ACF57-5345-11d2-99CF-00C04F797BC9')     ICreateWithTransactionEx : public IUnknown     {     public:     virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstance(         /* [in] */ ITransaction *pTransaction,         /* [in] */ REFCLSID rclsid,         /* [in] */ REFIID riid,         /* [iid_is][retval][out] */ void **pObject) = 0;      }; 

A couple of suggestions from another source:

As the error message of the compiler tells there are 2 declarations of the ITransaction datatype in scope of the compilation unit. It seems the the ITransaction definition comes from Microsoft’s comsvcs.h and that the OleDB::ITransaction is a implementation of the ITransaction interface from Borland. So you could try 2 things:

  1. eliminate the OleDB::ITransaction definition (don’t know Turbo C++, but there may be a component dealing with oleDB. Try to get rid of this. Or it may be included by using another #include. Search for the text oledb::ITransaction in your include directory and you will hopefully find the relevant file. Modify the include path so it is not included any more).
  2. you could try to define CINTERFACE because the code resulting in the compile error will not be included if this is defined. But that may cause other problems…

Does anyone have any other suggestions?

Kind regards, Bruce.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:48:26+00:00Added an answer on May 10, 2026 at 8:48 pm

    I have no clue how to do COM or what your ITransaction is, but it seems to me like your scope contains two ITransaction types. Can you be more explicit in your function prototype? Can you scope the ITransaction you want to use? Say ‘::ITransaction’ (to use global namespace) or ‘some_other_namespace::ITransaction’?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 52k
  • Answers 52k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer HTML was originally created to put the content of documents… May 11, 2026 at 6:46 am
  • added an answer Got it! a resources value can be set through Application.Current.Resources[key].… May 11, 2026 at 6:46 am
  • added an answer Each thread has its own message queue, and messages sent… May 11, 2026 at 6:46 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.