Solved

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

Posted on 2004-08-13
8
295 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
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 134
delphi parse string to params 3 123
Multiple image collision 13 75
Convert MS Word document to a PDF file 9 82
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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