BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DRC file - compile vs. build

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi IDE
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jan 16, 2007 8:49 pm    Post subject: DRC file - compile vs. build Reply with quote



Hi,

We are using Delphi 2006 for a Win32 project that has four languages.
We have recently realized that the <project>.drc file that is generated
when the project is *compiled* is different than that which is
generated when the project is *built*. They are the same size and with
all the same resources, but in different orders and with different ID
numbers.

Compiling the project always yields the same order and ID numbers as
every other compile. The same is true for a build. The two drc files
are just different from each other.

For example, the compile-generated version of the drc looks like this:
....
#define bdeconst_SNoCachedUpdates 64088
#define bdeconst_SInvalidAliasName 64089 <---
#define bdeconst_SNoFieldAccess 64090
....

whereas the build-generated version looks like this:
....
#define QR4Const_sqrPreviewWindowCaption 64088
#define QR4Const_sqrExitButtonCaption 64089 <---
#define QR4Const_sqrSearchNoResult 64090
....

With a compile the exit button on our QuickReport preview (correctly)
reads "Close", but with a build it reads "Alias Name". So apparently,
64089 always represents "Alias Name" even though the build would seem
to indicate otherwise.

So our questions are:

1) Why would the compiled version be different from the built version?

2) Is there anything that can be done so that the drc is the same
regardless of whether the project is compiled or built?

3) Is there something we need to change in the code or in the options
that could render this order irrelevant, at least to us? (i.e., the
caption on that button would always read "Close" regardless)

Thank you for any assistance,
Brad
Back to top
Guest






PostPosted: Tue Jan 16, 2007 9:00 pm    Post subject: Re: DRC file - compile vs. build Reply with quote



Sorry, I should clarify...

The problem I described with the Exit Button only occurs in the
translated versions of our software. The English version always reads
"Close", but the Spanish version, for example, displays the translated
version of "Alias Name" rather than the translated version of "Close".
This problem is corrected by compiling (not building) the main project.
Recompiling the Spanish version of the project is not necessary.

Thanks,
Brad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.