🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.graphics
3 messages
3 total messages Started by Ma Xiaoguang Wed, 06 Aug 2008 03:25
Questions about compiler directives in Delphi.
#283
Author: Ma Xiaoguang
Date: Wed, 06 Aug 2008 03:25
24 lines
1599 bytes
Dear ladies and gentlemen,

   I have been checking the GR32.pas library out, recently. And I have some
questions about compiler directives in this library:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  At 850 lines, there is a compiler directive:

   {$IFDEF WIN_COLOR_FIX}

   What does it mean?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   I know what the {$IFDEF ...} stands for, but I don't know what the 
WIN_COLOR_FIX
flag above mean. I can't find detailed explanations about the directives 
above in the Delphi Help. Where can I find detailed information about it and 
more other compiler directives of Delphi?

   Help me, please. Thank you very much.

   Best regards.

   Xiaoguang 
Re: Questions about compiler directives in Delphi.
#286
Author: Peter Below (TeamB)
Date: Wed, 06 Aug 2008 07:41
39 lines
2330 bytes
Ma Xiaoguang wrote:

> Dear ladies and gentlemen,
> 
>   I have been checking the GR32.pas library out, recently. And I have
> some questions about compiler directives in this library:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  At 850 lines, there is a compiler directive:
> 
>   {$IFDEF WIN_COLOR_FIX}
> 
>   What does it mean?
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  I know what the {$IFDEF ...} stands for, but I don't know what the
> WIN_COLOR_FIX flag above mean. I can't find detailed explanations
> about the directives above in the Delphi Help. Where can I find
> detailed information about it and more other compiler directives of
> Delphi?

You are assuming that this symbol is one that is predefined in Delphi.
That is not the case. The library probably comes with an include file
defining symbols, e.g. for different versions of the Delphi compiler it
may be compiled with. Such a file usually has the extension INC and is
included in the libraries units near the top through and {$I
filename.inc} statement. Such a file can define any symbol it wants
with the $DEFINE directive, which can of course also be used directly
inside a unit. In addition symbols can be defined for a project in the
project options dialog.



-- 
Peter Below (TeamB)  
Don't be a vampire (http://slash7.com/pages/vampires), 
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
Re: Questions about compiler directives in Delphi.
#291
Author: Ma Xiaoguang
Date: Thu, 07 Aug 2008 00:43
7 lines
1124 bytes
Hi Peter,

   Many thanks for your detailed explanation.

   Best regards.

   Xiaoguang 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads