Click to See Complete Forum and Search --> : Class Wizard wont let me pick a derived base class


Rich Peters
May 6th, 1999, 07:16 PM
I am trying to use class wizard to generate code for some class which is derived from CPropertyPage. I have exported this class to the gallery, I can see it in the class list, but when I try to generate a new class from the resource, the only thing selections for a base class are the MFC classes. Does anyone know how to fix this??

Bob Clarke
May 6th, 1999, 11:34 PM
I don't have a specific fix for you, but I have accepted what Class Wizard provides, then manually changed the base class, and the next time I went into Class Wizard, it showed the correct base class.

Braulio
May 7th, 1999, 09:48 AM
Hi !,

There is a way to do this that works, but is not very clean ( make a copy of the project before try ;-) ).

Add the resource to the project, add the code, and then close the project, delete the ".clw" file, open again the project and call the class wizard, this will ask to make a new class wizard file, do it, and all Ok... ( you must not forget before do that, is to have all the "languages" of the dialog to the default "language" ( for example I have some problems because sometimes I have some dialogs with "Deutsch(Germany)", and my default is "Deutsch(Switzerland).

HTH, Bye !
Braulio

Rich Peters
May 7th, 1999, 10:15 AM
Hmmm, I read the article about rebuilding the CLW file, and I have tried that. In your experience this will then let you specify another base class in the create new class dialog?

Rich Peters
May 7th, 1999, 10:17 AM
I had thought about that. I found that there was alot of editing involved in replacing the occurrences of the base class in the source code. I am converting a large number of dialogs, so I wanted this to be as errorless as possible.