Peter Van Hove wrote:
> Hi,
> 
> I'm porting my app from BCB5 to CB2009
> To do that I ported the ICS specific code (a class around the HttpCli
> component) a while ago and that seemed to work great in a little test
> program.
> 
> Yesterday and Today, trying to port the whole project I ran into lots
> of Ambiguity issues, for instance in most of my classes that contain
> VCL: 
> 
> [BCC32 Error] *.cpp(*): E2015 Ambiguity between '_fastcall
> Application()' and 'Forms::Application'

Yes, that's a problem. 

In OverbyteIcsLibrary.pas there are still four functions 
problematic with Builder.

Please try to add the "$EXTERNALSYM" directive like:

=>{$EXTERNALSYM Application}
function Application : TApplication;
{$ENDIF}
{$ENDIF}

=>{$EXTERNALSYM MakeWord}
function MakeWord(a, b: Byte): Word;
=>{$EXTERNALSYM MakeLong}
function MakeLong(a, b: Word): Longint;
=>{$EXTERNALSYM HiWord}
function HiWord(L: DWORD): Word;

Rebuild the ICS packages, does that change anything?

> Also, in the bigger project, when I try to #include the ICS code at
> the very last moment in the main.cpp, to avoid the ambiguity errors
> in other included classes and forms, I still run into the Application
> Ambiguities *AND* also a lot of Byte Ambiguities:
> 
> [BCC32 Error] Overbyteicsssleay.hpp(679): E2015 Ambiguity between
> 'Byte' and 'System::Byte'
> [BCC32 Error] Overbyteicsntlmmsgs.hpp(102): E2015 Ambiguity between
> 'Byte' and 'System::Byte'
> etc. ...

I really wonder who declared another type "Byte"? I'm not aware of
such a declaration in the ICS sources.
 
--
Arno Garrels
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to