Log in

View Full Version : help mfc classwizard not building


shyt
07-21-2004, 09:27 AM
help needed building/rebuilding the ClassWizard file


utlimately I need to To define a member variable for a (CComboBox) dialog box control

I'm generating a .clw file, but not information the controls in the classwizard.

below is some text from the help file entitled "Rebuilding the ClassWizard (.clw) File"


1) Delete your project's .clw file.

2) On the View menu, click ClassWizard.
If ClassWizard appears, the project for which you deleted the .clw file is not the active project. From ClassWizard's Project drop-down list, select the project for which you want to rebuild the .clw file.

3) If ClassWizard asks you to close any files, close ClassWizard, close the files, and then restart ClassWizard.
A message box asks if you want to rebuild the ClassWizard file from your source files.

4) Click Yes.
The Select Source Files dialog box appears.

5) Use the Add and Add All buttons to transfer all of the project's .h and .cpp files, and the .rc file from the File Name list to the Files In Project box. Click Remove to remove any files other than .h, .cpp, or .rc from the Files In Project box.

6) Click OK.
ClassWizard appears and generates a new .clw file.

7) Click OK to close ClassWizard.

Nikster
07-21-2004, 12:47 PM
I'm assuming your using MFC wizzard within visual studio 6 as you only have give half a picture, the main reasons why classwizzard wouldn not spawn in a MFC app is if you have manually added something that th wizzard doesnt like, an example of this would be to put an if() statement inside a messagemap for example, so it my be somethnig simialr why you stuff doesnt work as it normally does..

Obviously this is guessing with what little information you supplied :)

ps:: This forums needs a spell/gramar checker, as when I am sleepy, I can't type :)

shyt
07-21-2004, 11:52 PM
yeah I'm using VC++ 6. Tried 2 versions so it must be my code.
Nothing dodgy in the message maps.

Just discovered the classwizard, and it's never built for me.

I tried to load a few files to see if I could isolate the problem zone.
Assuming it wants to function in a state of construction. It won't even load a of header file and the corresponding implementation file.

Nikster
07-22-2004, 12:43 AM
Have you tried creating a new project from fresh ? trying creating a new MFC appwizard project.. an MDI app or something, then try the classwizard, if this still fails I would consider a reinstall as something will be serisouly b0rked.

shyt
07-22-2004, 03:23 AM
I think if I go down this avenue, I'll be up a creek for weeks, and I've got deadlines.

One of my estoric coursebooks recommends DDX and DDV functions as standard, and avoids binding member variables altogether. Although I suspect this is a shortcut, which definitely has limited functionality. I no like. Thanks for your suggestion anway, gave me hope and things to thinks about.

shyt
07-22-2004, 06:30 AM
Wait, I'm opening project in Win32 Application instead of MFC AppWizard (exe) ().
ClassWizard works fine. Albeit without my files. Thanks.

I see I'm gonna have to get familiar with this stuff. Rather the toy box my lecturers seem to have for me. They could have given me a heads up.

I have lost all faith in my course.