Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

"cannot add new member" while trying to add a button to a vc6 program with mfc support

Posted on 2004-11-30
2
Medium Priority
?
943 Views
Last Modified: 2008-01-09
Hi,

I am tryian to add a button to a dialog, I can drag an drop it in the dialog, but when I double click on it, to see the definition a message box with " cannot add new member appaers"..... Aditionaly I can not open the class wizard..

What am I doing wrong?
0
Comment
Question by:RobertoDeAlba
2 Comments
 
LVL 8

Accepted Solution

by:
AaronReams earned 300 total points
ID: 12712685
Hi there,

This sounds suspiciously like a missing visual studio tag error.  To clarify VS adds commented out text to the header and source files so it knows where to add new data members, data exchange handlers, and message handlers.  You may have accidentitaly deleted one of these which would cause this error.   I don't have VS in front of me right now, but look for "do not edit" and you'll find the tags I'm talking about.

Probably the quickest work around for you (although maybe not ideal or the best) is going to be to remove the source files from your project (only the dialog.h and dialog.cpp).  Copy them to a different directory.  Then create new source files from your dialog resource.  Add all your message handlers back in using class wizard.  Then cut and paste your source code back into the functions.  It sounds like a lot but really isn't too bad.

Hope this helps.

Good luck,
Aaron
0
 

Author Comment

by:RobertoDeAlba
ID: 12716465
Thanks Aaron
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question