Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Ambiguity between functions/types after incorporating INDY in BCB5 IDE

2 Aufrufe
Direkt zur ersten ungelesenen Nachricht

TJR

ungelesen,
20.08.2001, 12:03:0420.08.01
an
Now that I've incorporated the INDY components in my BCB5 IDE,
there are conflicting function/type names....how do you resolve these???

I have a conflict between IdGlobal::Sleep and the windows API Sleep() in
winbase.h.
Since winbase.h isn't a namespace, I couldn't specify the Sleep() I was
currently
using and had to opt for Indy's.

Getting past that, I now have a problem with 'size_t' in utilcls.h
void* operator new(size_t);
and Idsslopensslheaders::size_t. Since I shouldn't be editing either of
these
files, how to I get the correct size_t resolved?

I have the INDY header files last in the lookup in the
Project|Options->Directories/Conditionals.


Need help on the ASP,
Thanks,
Trudy Reiser


Remy Lebeau

ungelesen,
20.08.2001, 12:17:1820.08.01
an
The Win32 API is in the global namespace, so to specify the API Sleep()
instead of Indy's, use the :: scope operator, ie:

::Sleep(1000);


Gambit

"TJR" <tru...@leapfrog-smart.com> wrote in message news:3b81353f_2@dnews...

0 neue Nachrichten