Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Project Management
Build Events
Project Manager
Project Options
Project Source
Virtual Folders
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Project Management/Project Source
[ Add a report in this area ]
Report #:
6294
Status:
Closed
Retain {$IFDEF} in DPR uses clause
Project:
Delphi
Build #:
4.453
Version:
12.0
Submitted By:
Lechner Stefan
Report Type:
New Feature Request
Date Reported:
10/28/2003 2:50:58 AM
Severity:
Infrequently encountered problem
Last Updated:
11/25/2012 5:14:21 PM
Platform:
All platforms
Internal Tracking #:
196766
Resolution:
Fixed
(Resolution Comments)
Resolved in Build:
:
XE3
Duplicate of:
None
Voting and Rating
Overall Rating:
(8 Total Ratings)
5.00 out of 5
Total Votes:
237
Description
None
Steps to Reproduce:
assume following statements in the Project.dpr
:
uses
{$IFDEF MSWINDOWS}
Forms,
{$ELSE }
QForms,
{$ENDIF}
:
add a unit to the project
the rewritten Project.dpr will look like
:
uses
Forms,
QForms,
:
newUnit;
:
would be nice if the IDE could keep the handmade defines
Workarounds
None
Attachment
None
Comments
Thomas Jensen at 3/12/2007 1:03:57 AM
-
I also see this problem in Delphi 7.
I also tried to use ifdefs in the unit list in the dpr file. However, when Delphi saves the project, those ifdefs are deleted without warnings. This makes it impossible to have conditional units in the dpr file.
Edwin Frieswijk at 10/4/2010 8:06:03 AM
-
Same for comments
Same for INCLUDES, could be handy if they were not removed. Trying to use an include file to include a submodule into the dpr (so that you dont have to maintain several dprs when one submodel changes) but this behaviour makes it impossible. Delphi should respect my include (and push the contents into the dproj as wel)
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us