whosrdaddy
Vendor
is there some compiler directive that would recompile a unit even if no code has been changed?
let me explain my (small) problem :
I have 2 projects : the main application and a configuration application.
the two apps are using a shared unit
in this unit I use conditional compiling, like this
when I open the main app project and compile, everything is ok. then I open the config app project and compile. now Delphi complains that it can't find the STR_NAME_CONFIGAPPLICATION constant.
for the moment I have 2 ways to solve the problem :
a)I modify the shared unit (like type a space somewhere) so that the modified flag is set
b)I delete the .dcu file
after doing one of thos 2 things delphi will recompile this unit and the error is gone.
I think there must be a better solution to this problem...
--------------------------------------
What You See Is What You Get
let me explain my (small) problem :
I have 2 projects : the main application and a configuration application.
the two apps are using a shared unit
in this unit I use conditional compiling, like this
Code:
unit u_sharedglobals;
...
{$IFDEF MAINAPP}
STR_VERSION_FULL = 'Professional version '+STR_VERSION_MAIN+' Release %s Build %s';
INT_APPTYPE = TpProfessionalApp;
{$ENDIF}
{$IFDEF CONFIGAPP}
STR_NAME_CONFIGAPPLICATION = STR_NAME_APPLICATION+' Configuration';
STR_VERSION_FULL = 'Version '+STR_VERSION_MAIN+' Release %s Build %s';
INT_APPTYPE = TpConfigApp;
{$ENDIF}
...
when I open the main app project and compile, everything is ok. then I open the config app project and compile. now Delphi complains that it can't find the STR_NAME_CONFIGAPPLICATION constant.
for the moment I have 2 ways to solve the problem :
a)I modify the shared unit (like type a space somewhere) so that the modified flag is set
b)I delete the .dcu file
after doing one of thos 2 things delphi will recompile this unit and the error is gone.
I think there must be a better solution to this problem...
--------------------------------------
What You See Is What You Get