INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Create RES file with brcc32

Create RES file with brcc32

(OP)
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?

RE: Create RES file with brcc32

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: How do I write a Control Panel Applet?:

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.

RE: Create RES file with brcc32

(OP)
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?

RE: Create RES file with brcc32

(OP)
Problem solved.

RE: Create RES file with brcc32

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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close