🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11680

Re: #include "aclapi.h" - gives ERRor [C++ Error] aclapi.h(81): E2015 Ambiguity between 'PACCESS_MASK.......

#11680
From: Vladimir Afanasyev
Date: Sat, 17 Jan 2004 10:17
31 lines
1966 bytes
Hi,

"Roman" <figure@mail.ru> wrote:
>Just try to include file : aclapi.h   into your new APP
>
>you get an error
>
>[C++ Error] aclapi.h(81): E2015 Ambiguity between 'PACCESS_MASK' and
>'Windows::PACCESS_MASK'
>
>Please help, how to solv   this problem  !!

Really Windows::PACCESS_MASK and PACCESS_MASK it is the same 
type. You can find in Winnt.H that:
typedef DWORD ACCESS_MASK;
typedef ACCESS_MASK *PACCESS_MASK;

But C++ Builder when resolve ref. to this type find two 
path to type definition.
Exist some way to solve it:
for example if you use aclapi.h in unit1.cpp you can 
try to put include directly in unit1.cpp (if you do not 
ref. aclapi.h in unit1.h) before #include <vcl.h>.

Or you can point PACCESS_MASK type more exactly in aclapi.h.
For this find all errors with PACCESS_MASK in aclapi.h and 
change PACCESS_MASK on ::PACCESS_MASK or Windows::PACCESS_MASK.
C++ Builder will know where it must find definition of type.

Vladimir.
Technical Details
Message-ID: <400919cd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40079fb2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a2330830d324b2aa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-17 03:39:17 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: #include "aclapi.h"  - gives  ERRor [C++ Error] aclapi.h(81): E2015 Ambiguity between  'PACCESS_MASK.......
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226     
X-Forwarded-For: 192.168.0.147
References:  <40079fb2$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <400919cd$1@newsgroups.borland.com>
Date: 17 Jan 2004 03:17:33 -0700
X-Trace: newsgroups.borland.com 1074338253 207.105.83.66 (17 Jan 2004 03:17:33 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail