In Delphi, when one unit is replaced by another you can set up a project
alias to cater for this.  Later versions of Delphi have the (default)
aliases
"WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE
;".  Can you not do the same in C++ Builder?

Setting up these aliases would mean that you wouldn't need to change the
source of every pascal unit you wanted to use.

Cheers,

Carl Reynolds                      Ph: +64-9-4154790
CJN Technologies Ltd.             Fax: +64-9-4154791
[EMAIL PROTECTED]                DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/

> -----Original Message-----
> From: Chris Crowe [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 22, 1999 8:15 AM
> To:   Multiple recipients of list Delphi
> Subject:      RE: [DUG]:  [LinkerFatal Error] Fatal: Illegal EXTDEF
> fixup index in module 'C:\ADROCK\C1\adcolob.pas'
> 
> I found my own answer to this problem.
> 
> I had a pascal unit, which used the Winprocs unit, and in my code I
> had a
> line like this
> 
> Winprocs.SetTextAlign(Canvas.Handle, TA_TOP);
> 
> The Winprocs unit obviously does not get handled in C++ Builder 1, so
> I just
> put a conditional define around it and it is now all OK.
> 
>    {$ifdef WIN32}
>       case TextAlign of
>          taTop      : Windows.SetTextAlign(Canvas.Handle, TA_TOP);
>          taBottom   : Windows.SetTextAlign(Canvas.Handle,
> TA_BASELINE);
>       end;
>       {$else}
>       case TextAlign of
>          taTop      : Winprocs.SetTextAlign(Canvas.Handle, TA_TOP);
>          taBottom   : Winprocs.SetTextAlign(Canvas.Handle,
> TA_BASELINE);
>       end;
>       {$endif}
> 
> Not the best description for an Error Message, but at least I have the
> answer.
> 
> Chris Crowe
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Chris Crowe
> Sent: Tuesday, 21 September 1999 13:20
> To: Multiple recipients of list Delphi
> Subject: [DUG]: [LinkerFatal Error] Fatal: Illegal EXTDEF fixup index
> in
> module 'C:\ADROCK\C1\adcolob.pas'
> 
> 
> Can anyone explain what this message is and what do do about getting
> rid
> ofit?
> 
> I am trying to install a Delphi PASCAL file into C++ Builder 1.
> 
> [LinkerFatal Error] Fatal: Illegal EXTDEF fixup index in module
> 'C:\ADROCK\C1\adcolob.pas'
> 
> Chris
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

application/ms-tnef

Reply via email to