I have searched online and get inconsistent answers that don't fix the problem for me. I created a dialog box and then clicked ont he wizard to create a class for me. Unfortunately it named the class and file badly badly so I renamed the file. Now visual studio won't let me do anything through the gui to the dlg resource - like hook up a button even handler, etc. I get the message box:
"Add/Remove operation is impossible, because the code element 'Cxxxx' is read only"
This is a real problem because adding handlers and things manually through the code is tedious and one of the developers just isn't able to do it that way - he needs the GUI to manipulate the events.
I have tried deleting the ncb file and rebuilding the project, but no luck at all. MS apparently has not fixed this problem after 4 years or so (based on the searches I have seen online.
I can't add variables, event handlers or anything else useful through the MFC app wizard gui. I can only do so by editing the cpp and h files.
Does anyone have any suggestions?