Custom AppWizard's RC files unreadable.
rwagner -- rwagner@genre.com
Friday, October 11, 1996
Environment: VisualC++ 4.2 / MFC / Windows 95
I'd like to use the custom appwizard wizard to create an appwizard based on the
standard MFC appwizard with a couple of extra pages, and drop a couple of the
standard pages. That part is OK, but I'd like to add (and hide or grey out)
buttons and listbox items to the standard dialogs, as well as provide some of
our own MFC extension classes in the base classes list for the View. One or
two of the stock pages I would like to remove entirely.
However, these resources (wizard pages etcetera) seem unreachable. When I try
to open any of the resource files in the template directory, such as 'all.rc',
I get errors which assert that the file is unreadable, such as 'error RC2104:
undefined keyword or key name: $$IF'.
I may be going at this the wrong way. How DOES one create an appwizard based
on the standard one, reusing existing pages in the wizard and existing code,
without starting from scratch?
Cheers
Rob
Mike Blaszczak -- mikeblas@nwlink.com
Sunday, October 13, 1996
At 15:59 10/11/96, rwagner wrote:
>Environment: VisualC++ 4.2 / MFC / Windows 95
>However, these resources (wizard pages etcetera) seem unreachable. When I try
>to open any of the resource files in the template directory, such as 'all.rc',
>I get errors which assert that the file is unreadable, such as 'error RC2104:
>undefined keyword or key name: $$IF'.
The templates are not usable resource files. The templates are templates, not
resource files. A template includes directives that the AppWizard engine
understands; those directives are always preceeded by $$--like $$IF or $$ENDIF.
You need to develop the resource you want and then make it into a template.
Once you have the template, you can make incremental changes to it by hand, but
the resource editor can't understand AppWizard template files, even if they're
templates for resource files.
.B ekiM
http://www.nwlink.com/~mikeblas/
Don't look at my hands: look at my _shoulders_!
These words are my own. I do not speak on behalf of Microsoft.
| Вернуться в корень Архива
|