C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 11th, 2002, 12:23 PM
Marky_Mark Marky_Mark is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: On a screen near you
Posts: 498 Marky_Mark User rank is Private First Class (20 - 50 Reputation Level)Marky_Mark User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
New Dialog

Can anyone help us out here


I want to create a new Dialog from the existing base class Dialog


Ive added a new Dialog to my resources and registered with class wizard but im have trouble instantiating the new form


My Dialog is called CMyDialog and in doing this


CMyDialog MyDlg(this);
int nRetcode = MyDlg.DoModal();


The class im calling from is called CAboutDlg do i have to use this somewhere


Mark
Comments on this post
BaronVonDoppleG agrees!
__________________
100 trillion calculations per nanosecond

Reply With Quote
  #2  
Old January 11th, 2002, 02:21 PM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 12
Where are you instantiating the new object? Do you create it when something is clicked on or moused over, when the parent dialog is initialized...?

And what exactly is happening? Is the dialog not showing up, or are you getting error messages?

If you're calling from CAboutDlg, then you won't be able to access your CMyDialog object until you open the About dialog (Help->About), assuming you're using either an SDI or MDI -type framework.
__________________
Jon Sagara

"Me fail English? That's unpossible!"

Reply With Quote
  #3  
Old January 12th, 2002, 07:32 AM
Marky_Mark Marky_Mark is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: On a screen near you
Posts: 498 Marky_Mark User rank is Private First Class (20 - 50 Reputation Level)Marky_Mark User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Thanks for your reply


I had a button on one form that invokes a new Dialog but i forgot to add the include in the parent class for my new Dialog


One i done that it worked


Thanks


Mark

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > New Dialog

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap