Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you add a .RC to the project?

Posted on 2001-07-27
8
Medium Priority
?
259 Views
Last Modified: 2010-04-06
Hi.

Looking inside a D5 project group, I see ...

#------------------------------------------------------------------------------
VERSION = BWS.01
#------------------------------------------------------------------------------
!ifndef ROOT
ROOT = $(MAKEDIR)\..
!endif
#------------------------------------------------------------------------------
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = MyProg.exe
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------
MyProg.exe: MyProg.dpr
  $(DCC)


This all makes sort of sense.

I added my .RC file too it like this ...

#------------------------------------------------------------------------------
VERSION = BWS.01
#------------------------------------------------------------------------------
!ifndef ROOT
ROOT = $(MAKEDIR)\..
!endif
#------------------------------------------------------------------------------
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = MyProg.exe Resources.res
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------

Resources.res: Resources.rc
  $(BRCC)

MyProg.exe: MyProg.dpr
  $(DCC)


When I load up the group, I get a message ...

Interface not supported.

Unable to create project Resources.rc. This project will be removed from the project group.

[OK]


Which it does when I click OK.


So, why does the project group have the BRCC directive if it cannot use it?

Or have I got the format wrong?

Regards,

Richard Quadling.
Carval Computing Ltd.
0
Comment
Question by:Richard Quadling
8 Comments
 

Expert Comment

by:meirchen
ID: 6326593
Have you compiled the .rc file to a .res file?  That's possible with the brcc32.exe.  I don't think delphi can use the normal .rc file if it's not compiled.
0
 
LVL 40

Author Comment

by:Richard Quadling
ID: 6326709
I CAN use BRCC32 from the command line, but why when the make file seems to know how to call that program?

I am going to try ...

#------------------------------------------------------------------------------
VERSION = BWS.01
#------------------------------------------------------------------------------
!ifndef ROOT
ROOT = $(MAKEDIR)\..
!endif
#------------------------------------------------------------------------------
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = MyProg.exe
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------
MyProg.exe: MyProg.dpr
 $(ROOT)\bin\brcc32.exe resources.rc
 $(DCC)


And let you know.

I know asking questions and then providing my own answers doesn't win points, but asking them often helps others!

Regards,

Richard Quadling.
0
 
LVL 40

Author Comment

by:Richard Quadling
ID: 6326811
Ok.

Having FINALLY read the help (ha ha) ...

In the Project Manager, simply add the .RC file! DOH!

You get ...

program MyProg;

{%File 'Debug.inc'}
{$R 'Resources.res' 'Resources.rc'}


The Debug.inc file includes a list of debugs I may want. By having it in the file, It will be used as part of the build/make check!

The second part (resources.rc) is the plain text version for the list of resources.

This will build the .RES file automatically too.

So.

My answer to the question of "How do you add a .RC to the project?" is to go into the Project Manager and add the .RC file.

Some things are just a little TOO obvious sometimes!

Regards,

Richard Quadling.
0
Industry Leaders: 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 1

Expert Comment

by:h_mohsenian
ID: 6329900
listening...
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 6330178
yup add .rc to project not project group
0
 
LVL 40

Author Comment

by:Richard Quadling
ID: 6333481
What confused me the most was the lack of a "Resource Workshop" (I used to run Borland C++ with AFX for Win3.1x - those where the days!).

I couldn't quite understand who, with all the great things Delphi was doing, how it could not handle a list of resources.

So, sometimes (and only sometimes), reading the help/manual is beneficial!

0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 6334936
Hi RQuadling, after reviewing this question, I see that you did in fact answer it your self.  I will refund your points and accept my own comment @ 0 points to move to PAQ.

Thanks,
ComTech
Community Support Moderator
0
 
LVL 40

Author Comment

by:Richard Quadling
ID: 6336938
Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

927 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