Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create RES file with brcc32

Status
Not open for further replies.

MLNorton

Programmer
Nov 15, 2009
134
US
I need to include two bit files in a Delphi XE2 Program. I need to create a RES file. I have a RC file as follows:
MyPic.RC
Brigade BMP "Brigade.bmp"
Flags BMP "SigFlags,bmp"
When I run:
BRCC32 MyPic.RC
the file MyPic.RC cannot be found. MyPic.Rc is in the E:/DelphiRes directory. I have tried;
BRCC32 E:/DelphiRes/MyPic.RC
With the same result. What is my problem and what is the solution?
 
I usually create batch files that I can double-click on in Explorer for this function to make things easier on myself when it comes to resource files, and making sure changes are integrated into the project.

For example, I used this one with faq102-7505:

Code:
"C:\Program Files\Borland\Delphi 3\Bin\brcc32.exe" cp_resource.rc
"C:\Program Files\Borland\Delphi 3\Bin\dcc32.exe" myapplets.dpr
rem To Deploy to the system directory if necessary.
rem copy myapplets.cpl C:\Windows\system32

rem clean up old files
del *.~*
pause

This said, my guess is that BRCC32 is searching for the file in its own directory and not the directory you specify. (Also, you have a comma where a period should be in line 2, but hopefully if it finds the RC file, it should warn you about that)

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
I have corrected the RC file and I still get the following message:
“Error: Could not open input file MyPic.RC”
What is my problem?
 
Just adding my 2$c on this subject.

In newer delphi versions, if you add your .rc files to the project, they well be automatically built at project compile/build.
I don't know exactly from which version this functionality starts, but I have it in D2006 and XE.

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top