Ambiguity with IID_IUnknown

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 5
Joined: Mon 07 Feb 2005 01:48

Ambiguity with IID_IUnknown

Post by gaspo100 » Mon 07 Feb 2005 02:19

I've just installed SDAC 3.50 and when I try to compile my code with BCB5 I get the following errors:

utilcls.h(2778): E2015 Ambiguity between 'GUID_NULL' and 'Oledbc::GUID_NULL'

utilcls.h(3130): E2015 Ambiguity between 'IID_IUnknown' and 'Oledbc::IID_IUnknown'

Is there a way how to get arround this problem?

Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 07 Feb 2005 09:54

The problem is that both these identifiers are declared in Oledbc.hpp and in uticls.h.

If you need to use both these units you should remove from Oledbc.hpp corresponding declarations.


Post by Guest » Mon 07 Feb 2005 10:12

Thanks, it compiles now.

I wasn't sure if removing those declarations from oledbc.hpp would have any other implications.

Posts: 1
Joined: Sat 05 Mar 2011 06:25

Post by anddenisov » Sat 05 Mar 2011 06:41

Hi, I am using SDAC with RAD Studio 2010
I use TMSStoredProc and TExcelApplication and get even errors

I comment lines:

Code: Select all


extern PACKAGE GUID IID_IUnknown;
in oledbc.hpp, but cann`t compile my project, because i get error

[BCC32 Fatal Error] Excel_2K.h(172753): F1008 Out of memory

Can you help me, how can i using these components with excel?


Post by AndreyZ » Thu 10 Mar 2011 13:43

I cannot reproduce the problem. Please try composing a small sample to demonstrate the problem and send it to andreyz*devart*com.

Post Reply