ClassWizard missing classes?
-
It seems to happen quite frequently in my MFC projects that the dropdown list in ClassWizard has only a subset of the classes in the project, for example if I have multiple Views, most of them are missing. The ClassView of VC6 shows all of them correctly. This makes it a pain to add message handlers etc, although I can do it by right-clicking on the ClassView. Does anyone understand this - is it a bug or a feature? Can I fix it? thanks for any help.
-
It seems to happen quite frequently in my MFC projects that the dropdown list in ClassWizard has only a subset of the classes in the project, for example if I have multiple Views, most of them are missing. The ClassView of VC6 shows all of them correctly. This makes it a pain to add message handlers etc, although I can do it by right-clicking on the ClassView. Does anyone understand this - is it a bug or a feature? Can I fix it? thanks for any help.
There are several things to consider. Make sure you have all the //{{AFX_VIRTUAL and //{{AFX_MSG blocks filled in correctly. If your project does not have a lot of files in different directories you may want to rebuild the .clw file. You can do this by deleting the .clw file and then clicking ctrl-w. One think that I do is open the .clw file in a text editor and add the missing classes. After a quick inspection you should figure out what is needed. John
-
There are several things to consider. Make sure you have all the //{{AFX_VIRTUAL and //{{AFX_MSG blocks filled in correctly. If your project does not have a lot of files in different directories you may want to rebuild the .clw file. You can do this by deleting the .clw file and then clicking ctrl-w. One think that I do is open the .clw file in a text editor and add the missing classes. After a quick inspection you should figure out what is needed. John
John, thanks very much, deleting the .clw file and rebuilding the ClassWizard data did the trick. regards Andrew