DBAccess Ambiguity

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

DBAccess Ambiguity

Post by wjm4 » Sat 22 May 2010 06:25

I am getting a compiler ambiguity error when I include both Unidac components and Windows Service Manager structures in my application.

The current error is:
[BCC32 Error] SCMCLASS.h(16): E2015 Ambiguity between 'SC_HANDLE' and 'Dbaccess::SC_HANDLE'

Since Dbaccess is used by unidac, I did not know if you had encountered the problem before. Thanks in advance.

dkittell
Posts: 10
Joined: Thu 10 Dec 2009 01:37
Location: Michigan, USA

Post by dkittell » Tue 25 May 2010 12:37

Just a quick thought, are you creating a new handle or are you attempting to use the same one?

wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

Post by wjm4 » Tue 25 May 2010 12:54

I am creating a new handle.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Tue 25 May 2010 15:32

Hello

You should use the Dbaccess::SC_HANDLE type (in the Dbaccess namespace) to use the SC_HANDLE type from UniDAC. And use the ::SC_HANDLE type to use the SC_HANDLE type from the Windows Service Manager structures.

For example:

Code: Select all

{
  ::SC_HANDLE             hWindowsServiceManager;
  Dbaccess::SC_HANDLE     hUniDACHandle;

}

Post Reply