Page 1 of 1

Ambiguity with IID_IUnknown

Posted: Mon 07 Feb 2005 02:19
by gaspo100
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?

Posted: Mon 07 Feb 2005 09:54
by Ikar
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.

Posted: Mon 07 Feb 2005 10:12
by Guest
Thanks, it compiles now.

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

Posted: Sat 05 Mar 2011 06:41
by anddenisov
Hi, I am using SDAC 4.80.0.55 with RAD Studio 2010
I use TMSStoredProc and TExcelApplication and get even errors

I comment lines:

Code: Select all

extern PACKAGE GUID IID_NULL;

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?

Posted: Thu 10 Mar 2011 13:43
by AndreyZ
I cannot reproduce the problem. Please try composing a small sample to demonstrate the problem and send it to andreyz*devart*com.