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. "Cannot add a new member"

"Cannot add a new member"

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 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.
  • C Offline
    C Offline
    CodeMak
    wrote on last edited by
    #1

    I need to add a new message handler for a dialog box... but its giving "Cannot add a new member"... ... i tried deleting clw file and the rebuliding it.but doesnt work. Also all my classes are not getting displayed in class wizard. Plz help me. Thanks n Advance

    H A 3 Replies Last reply
    0
    • C CodeMak

      I need to add a new message handler for a dialog box... but its giving "Cannot add a new member"... ... i tried deleting clw file and the rebuliding it.but doesnt work. Also all my classes are not getting displayed in class wizard. Plz help me. Thanks n Advance

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      How many controls do you have on the form?


      WhiteSky


      1 Reply Last reply
      0
      • C CodeMak

        I need to add a new message handler for a dialog box... but its giving "Cannot add a new member"... ... i tried deleting clw file and the rebuliding it.but doesnt work. Also all my classes are not getting displayed in class wizard. Plz help me. Thanks n Advance

        A Offline
        A Offline
        Akt_4_U
        wrote on last edited by
        #3

        I think you must add some member in header file , for example : in following code , when you want add double click to add a new member in dialog, the "Cannot add new member " message will be occur. please move the private: int m_iValue below the ADX_DATA will be fixed! // Dialog Data //{{AFX_DATA(CDlg) enum { IDD = IDD_DIALOG }; CButton m_ABC; CRichEditCtrl m_RichEdit; private: int m_iValue //}}AFX_DATA Also this inidicates that the file is readonly, or that perhaps the various magic comments have been corrupted

        akt

        1 Reply Last reply
        0
        • C CodeMak

          I need to add a new message handler for a dialog box... but its giving "Cannot add a new member"... ... i tried deleting clw file and the rebuliding it.but doesnt work. Also all my classes are not getting displayed in class wizard. Plz help me. Thanks n Advance

          A Offline
          A Offline
          Akt_4_U
          wrote on last edited by
          #4

          I think you must add some member in header file , for example : in following code , when you want add double click to add a new member in dialog, the "Cannot add new member " message will be occur. please move the private: int m_iValue below the ADX_DATA will be fixed! // Dialog Data //{{AFX_DATA(CDlg) enum { IDD = IDD_DIALOG }; CButton m_ABC; CRichEditCtrl m_RichEdit; private: int m_iValue //}}AFX_DATA Also this inidicates that the file is readonly, or that perhaps the various magic comments have been corrupted

          akt

          C 1 Reply Last reply
          0
          • A Akt_4_U

            I think you must add some member in header file , for example : in following code , when you want add double click to add a new member in dialog, the "Cannot add new member " message will be occur. please move the private: int m_iValue below the ADX_DATA will be fixed! // Dialog Data //{{AFX_DATA(CDlg) enum { IDD = IDD_DIALOG }; CButton m_ABC; CRichEditCtrl m_RichEdit; private: int m_iValue //}}AFX_DATA Also this inidicates that the file is readonly, or that perhaps the various magic comments have been corrupted

            akt

            C Offline
            C Offline
            CodeMak
            wrote on last edited by
            #5

            Thanks 4 that.... but i dont have any member variable of class scope.. so the above doesn't fit the solution. how to display all classes what i have in ma project in class wizard Note : All my classes where not created using class wizard :) Thanks in Advance. Regards. Arshad. "I am just loving this....."

            H 1 Reply Last reply
            0
            • C CodeMak

              Thanks 4 that.... but i dont have any member variable of class scope.. so the above doesn't fit the solution. how to display all classes what i have in ma project in class wizard Note : All my classes where not created using class wizard :) Thanks in Advance. Regards. Arshad. "I am just loving this....."

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              You can also declare your variables manualy.


              WhiteSky


              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