Solved

How do you add a .RC to the project?

Posted on 2001-07-27
8
246 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
[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
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
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.

 
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

Technology Partners: 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month5 days, 9 hours left to enroll

627 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