Well I tried that, but for some reason the dll does not change?
 
dcc32 "J:\My Documents\Delphi 5 Projects\MyProj\MyProj.dpr"
/DACTIVEDESKTOP /B /Q
 
and in one of my units I have 
 
{$IFDEF ACTIVEDESKTOP}
  ShowMessage('Active Desktop');
{$ENDIF}
 
-----Original Message-----
From: Nello Sestini [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 May 2001 2:18 p.m.
To: Multiple recipients of list delphi
Subject: Re: Re: [DUG]: Compiler Switches
 
> OK, but how do I do it using the command line compiler?
oh sorry - i misunderstood.    
 
i thought you didn't want to use the command line complier
but thought you might have to to get the switches.
 
 
use the /D option to the command line compiler to pass
in the switches to define.
 
>From the help:
 
The conditional defines option
 
The /D option lets you define conditional symbols, corresponding to the
{$DEFINE symbol} compiler directive. The /D option must be followed by
one or more conditional symbols separated by semicolons (;). For
example, the following command line
 
DCC32 MYSTUFF /DIOCHECK;DEBUG;LIST
 
defines three conditional symbols, iocheck, debug, and list, for the
compilation of MYSTUFF.PAS. This is equivalent to inserting
 
{$DEFINE IOCHECK}
{$DEFINE DEBUG}
{$DEFINE LIST}
 
at the beginning of MYSTUFF.PAS. If you specify multiple /D directives,
you can concatenate the symbol lists. Therefore,
 
DCC32 MYSTUFF /DIOCHECK/DDEBUG/DLIST
 
is equivalent to the first example.
 
-ns
 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

Reply via email to