Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ClassWizard missing classes?

ClassWizard missing classes?

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mister Transistor
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • M Mister Transistor

      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.

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • J John M Drescher

        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

        M Offline
        M Offline
        Mister Transistor
        wrote on last edited by
        #3

        John, thanks very much, deleting the .clw file and rebuilding the ClassWizard data did the trick. regards Andrew

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups