C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 5th, 2005, 12:19 PM
grodin grodin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 2 grodin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 27 sec
Reputation Power: 0
Removing a button control.

Hi,

I want to remove a button control from a dialog box ( I used the ClassWizard for that), but when I actually deleted the control from the Dialog source and run the program I got an error message referring to “Debug Assertion Failed”. Can anyone explain me how to remove the button control correctly?
Thanks.
P.S. The language is VC++.
Attached Images
File Type: jpg error message.jpg (41.3 KB, 124 views)

Reply With Quote
  #2  
Old May 5th, 2005, 01:55 PM
ShadowCoder ShadowCoder is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Ottawa
Posts: 20 ShadowCoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 12 sec
Reputation Power: 0
A good way to delete the button control is to do it from the Resource tab view. Open the dialog in that view, click the control on the dialog you want to get rid of and press the delete button. You will also have to remove any reference to that button that you have in your code. So if you have a button and you created a member variable for it and then you used that member variable in your code you will have to manually remove that yourself. If that assertion is happening before the dialog appears take a look in OnInit(). Otherwise just start sticking breakpoints all over the place and step through the code until you hit the line that is causing the assertion.

Reply With Quote
  #3  
Old May 5th, 2005, 04:19 PM
grodin grodin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 2 grodin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 27 sec
Reputation Power: 0
Thanks, It's working know. Just as you described, the member variable wasn't deleted.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Removing a button control.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT