Multiple resource files and Class Wizard
Rob Tessier -- Rob_Tessier@iacnet.com
Thursday, October 10, 1996
Environment: MS VC++ 4.2, Win95
My project involves several .rc files because we had several developers
fighting to modify the original single .rc file during the early stages of the
project. That single .rc file now includes several .rc files. This is and has
been working fine, however, I can't use Class Wizard to manage classes based on
resources, ie adding functions to dialog controls.
Is there a way to do this?? I'd like to be able to see all the control ids of
a dialog resource and add functions via Class Wizard.
-rob
Andrew Dalgleish -- andrewd@axonet.com.au
Friday, October 11, 1996
[Mini-digest: 2 responses]
Rob Tessier[SMTP:Rob_Tessier@iacnet.com] wrote:
>> Environment: MS VC++ 4.2, Win95
>>
>>My project involves several .rc files because we had several developers
>>fighting to modify the original single .rc file during the early stages
>>of the
>>project. That single .rc file now includes several .rc files. This is
>>and has
>>been working fine, however, I can't use Class Wizard to manage classes
>>based on
>>resources, ie adding functions to dialog controls.
>>
>>Is there a way to do this?? I'd like to be able to see all the control
>>ids of
>>a dialog resource and add functions via Class Wizard.
>>
>>-rob
You can add any source files to a .CLW, but it won't process #included
.RC files.
I have several large-ish applications which share several modules, each
in it's own sub-directory.
Each sub-directory FOO has it's own FOO.RC file (and a FOO.RH) which is
#included into the main APP.RC file.
The paths are like:
app1\app1.mak
app1\res\app1.rc
app1\foo\foo.rc
app2\app2.mak
app2\res\app2.rc
app2\foo\foo.rc
I have created a dummy FOO.MAK in each sub-directory just so I can
create a FOO.CLW.
It's ackward, but it works.
If you're doing OLE, each sub-directory also has it's own FOO.ODL which
is #included into the main APP.ODL file.
To keep all the included paths working, I moved APP.RC file into the RES
directory, so that a path like "..\foo\foo.rc" works regardless of
whether you're editing APP.RC or FOO.RC. You have to do this for all the
#included files, and for all the bitmaps, etc.
Regards,
Andrew Dalgleish
-----From: Si Cruse
We use multiple resources in our project. You need to add each extra .rc file to
your project. Only then will Class Wizard allow you to select each resource - try
dropping the Class wizard Project combo, you'll see several entries there...
--
...A closed mouth gathers no foot...
_____________________________________________________________
Si Cruse
Front Office IT Development, Credit Suisse Financial Products
1 Cabot Square, London E14 4QJ
Phone: +44 171 516 2948 Fax: +44 171 516 2688
mailto:scruse@csfp.co.uk http://www.cruse.demon.co.uk
| Вернуться в корень Архива
|