FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is it possible to have multiple .RC files in a Project ?
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Is it possible to have multiple .RC files in a Project ?
Posted: Fri Feb 06, 2009 07:01 AM
Dear Friends,

Is it possible to have multiple .RC files in a Project ?

For Eg.

1) In my application I have a Menu option named "Account Heads Master"
I plan to keep all screens designs and resources related to Account Heads like ADD, Edit, Delete etc in a .RC file named "AcHeads.RC"

2) In my application I have an Menu Option named "Voucher Entries"
I plan to keep all screens designs and resources related to Voucher Entries like Add Dialog, Edit Dialog's, Delete Dialog's etc in a .RC file named "Vouchers.RC"

And finally in my project I will have many .RC files and using these .RC files, ONE SINGLE EXE is generated

This helps in organising the code neatly. I don't prefer to keep all screens designs together in a single .RC file. In a large project it will be very difficult.

Is this possible ?

Thanks in advance.

Regards

Anser
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Is it possible to have multiple .RC files in a Project ?
Posted: Fri Feb 06, 2009 07:33 AM
Anser,

The solution is to use a main RC file that includes each different RC:

myproject.rc:
#include "AcHeads.RC"
#include "Vouchers.RC"
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Is it possible to have multiple .RC files in a Project ?
Posted: Fri Feb 06, 2009 07:53 AM

Mr.Antonio,

Thankyou very much. :D

Let me explain what I have understood.

I'll have a MyProject.RC (Main RC) wich will contain only the includes of the other .RC files

include "AcHeads.RC"

include "Vouchers.RC"

...

NO dialog's, no resources in it (Main RC).

In my project make file I will be using only the MyProject.RC (Main RC ). As and when a new .RC file is added I should update the Main RC file to include the new .RC file in it.

I will have to take care and make sure that same ID's/resource names are not used in the other .RC files. ie Uniqness in resource ID's/Names should be enforced.

Hope I am right.

Regards

Anser

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Is it possible to have multiple .RC files in a Project ?
Posted: Fri Feb 06, 2009 08:24 AM

Anser,

Yes, you are right :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion