Solved

Is there a way to recreate a .res file without loading the delphi environment?

Posted on 2004-08-13
8
303 Views
Last Modified: 2010-04-05
I have a utility the builds projects using the command line compiler. Some projects (there are 1500+ projects total) were checked into source control without the applications .res file.

Is there any easy way to recreate the .res file for the application without actually loading the project into the delphi environment, there are a couple hundred projects without the .res and would be a pain to load them all just to get the .res file.
0
Comment
Question by:BJThomsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 4

Expert Comment

by:Colin_Dawson
ID: 11800837
You can build a Res file from the Command line using the BRCC32.   I've not done this for a long time, and can't remember all the details.

You'll need to create a .rc file. This will control what will be in the .res file.   Then you execute BRCC32 and it'll turn create a .RC file for you.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 125 total points
ID: 11803328
Well, what does the res file contain? If you don't have version information in it, the only important thing is the executable icon. Do you have a different icon for all those projects?

Basically if you have different  version information or different icons for all your projects, you have no other choice but to create a new res file for each project. But if the version information is identical (or non existent) and if the icon is identical, you can create one res file and copy it for all the projects.
0
 
LVL 4

Expert Comment

by:Colin_Dawson
ID: 11803396
Mind you, even if you do have version information, you could always create a program that will generate the .rc file, but interrogating the .dof file.  That's where Delphi saves the project options.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:BJThomsen
ID: 11810065
The res file for a project contains the forms dfm info. Not just the program icon.
0
 
LVL 20

Expert Comment

by:Madshi
ID: 11810235
The resource section of the linked exe contains the dfm info, the res file does not - at least not for me.
0
 
LVL 4

Expert Comment

by:Colin_Dawson
ID: 11812116
Whilst it IS possible to store menus, and form templates in the .res file. As Mashi has seen the .dfm's are not stored in the .res.
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 11819853
I use ResourceHacker to edit resources
http://www.users.on.net/johnson/resourcehacker/
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 11827765
ugh .. sorry bout the post .. didn't read completely :/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question