Resource.h & Class Wizard
Fred Wright -- FRED@bpadvert.demon.co.uk
Friday, June 28, 1996
Hi
re Win95 VC++ 4.1
When ever I add a new dialog to my project add the required controls
etc and use class wizard to construct a new class. No problems!
However if I make the dialog modeless and attach to CView. The code
compiles and works properly until I add members to the class.
Sometimes resource.h is trashed leaving only the new members to the
class or class wizard tells me that a duplicate insert block exists.
Is this a bug or do I have specific problems?
Obviously I'm getting quiet concerned as the only way around I can
find is to start again only to be faced with the same problem. I've
gone back to basics to construct the modeless dialog following
Kruglinski but to no avail.
Cheers
Best Regards
Fred Wright
Jon Meltzer/HHP/International Thomson Publishing
Wednesday, July 03, 1996
Make sure you don't have more than one AFX_DATA_INIT block in your file. If you
have more than one constructor you'll want to keep the block in the constructor
with the most instance variables, and delete the others. This one got me too,
and others on the list helped to solve it.
Try reading the Encyclopedia article on ClassWizard: Special Format Comment
Sections, though the text is somewhat unclear at least for error messages.
Jon Meltzer
Heinle & Heinle Publishers/ITP
| Вернуться в корень Архива
|