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 is screwing up, and I can't fix

ClassWizard is screwing up, and I can't fix

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
5 Posts 3 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.
  • S Offline
    S Offline
    Scorp1us
    wrote on last edited by
    #1

    I have a dialog with some controls on it. I wish to make member variables for these controls. The problem is that in the ClassWizard, not all the IDC_* values show up, and some show up that aren't (but were) there. :confused: In trying to fix this problem, I've re-numbered my resource.h file, and checked the .rc file - both are 'correct' - the .rc has all the proper IDC_* values, and no dupes exist in resource.h. I've saved and reloaded, reverified everything. To this day ClassWizard instists that there is no IDC_WITH control but there is a IDC_LASTNAME control. (I had renamed IDC_LASTNAME to IDC_SO_LASTNAME, now BOTH show up, but only the IDC_SO_ one is in the .rc file. Please help!

    J S 2 Replies Last reply
    0
    • S Scorp1us

      I have a dialog with some controls on it. I wish to make member variables for these controls. The problem is that in the ClassWizard, not all the IDC_* values show up, and some show up that aren't (but were) there. :confused: In trying to fix this problem, I've re-numbered my resource.h file, and checked the .rc file - both are 'correct' - the .rc has all the proper IDC_* values, and no dupes exist in resource.h. I've saved and reloaded, reverified everything. To this day ClassWizard instists that there is no IDC_WITH control but there is a IDC_LASTNAME control. (I had renamed IDC_LASTNAME to IDC_SO_LASTNAME, now BOTH show up, but only the IDC_SO_ one is in the .rc file. Please help!

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Recently I had a similar problem and workedaround it like follows:

      1. Make a backup of your project just in case the thing fails.
      2. Copy your .rc, resource.h and res directory to some new directory. Delete all these from your project.
      3. Open your project, then open the .rc and drag and drop all resources to the project.

      Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      S 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Recently I had a similar problem and workedaround it like follows:

        1. Make a backup of your project just in case the thing fails.
        2. Copy your .rc, resource.h and res directory to some new directory. Delete all these from your project.
        3. Open your project, then open the .rc and drag and drop all resources to the project.

        Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        S Offline
        S Offline
        Scorp1us
        wrote on last edited by
        #3

        Nope.. still not working... How do I delete the .rc from my project?

        1 Reply Last reply
        0
        • S Scorp1us

          I have a dialog with some controls on it. I wish to make member variables for these controls. The problem is that in the ClassWizard, not all the IDC_* values show up, and some show up that aren't (but were) there. :confused: In trying to fix this problem, I've re-numbered my resource.h file, and checked the .rc file - both are 'correct' - the .rc has all the proper IDC_* values, and no dupes exist in resource.h. I've saved and reloaded, reverified everything. To this day ClassWizard instists that there is no IDC_WITH control but there is a IDC_LASTNAME control. (I had renamed IDC_LASTNAME to IDC_SO_LASTNAME, now BOTH show up, but only the IDC_SO_ one is in the .rc file. Please help!

          S Offline
          S Offline
          Scorp1us
          wrote on last edited by
          #4

          I've tried deleting the class wizard file (clw) and rebuilding. I can find the control and add a handler, andit adds it to the right class, but I can't add it as a member control.

          A 1 Reply Last reply
          0
          • S Scorp1us

            I've tried deleting the class wizard file (clw) and rebuilding. I can find the control and add a handler, andit adds it to the right class, but I can't add it as a member control.

            A Offline
            A Offline
            Alvaro Mendez
            wrote on last edited by
            #5

            What kind of control is it? If it's a radio button, then you'll only see the ID for the first one in the group (for obvious reasons). Regards, Alvaro


            All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain

            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