GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Apr-2005, 01:39
phoenixblue phoenixblue is offline
New Member
 
Join Date: Apr 2005
Posts: 3
phoenixblue is on a distinguished road
Unhappy

Menus And Dialogs Not Running!!?


Hi,

- I created a new MFC with AppWizard, inserted a menu and another dialog.
- also created new classes for them (menu baseclass=CFrameWnd?!)

- i've included the menu into 1 of the dialog and i want to click on "New", the second dialog pops up

- then i placed the code:
CAddNewDlg dlg;
dlg.DoModal();

everything compiles with no errors & warnings but when i execute the program, nothing happens?!
none of the dialog box shows...

i've done this a few times and the program always run until i've created the menu and 2nd dialog box

what am i missing?!
thanks
  #2  
Old 15-Apr-2005, 02:23
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
Quote:
Originally Posted by phoenixblue
Hi,

- I created a new MFC with AppWizard, inserted a menu and another dialog.
- also created new classes for them (menu baseclass=CFrameWnd?!)

- i've included the menu into 1 of the dialog and i want to click on "New", the second dialog pops up

- then i placed the code:
CAddNewDlg dlg;
dlg.DoModal();

everything compiles with no errors & warnings but when i execute the program, nothing happens?!
none of the dialog box shows...

i've done this a few times and the program always run until i've created the menu and 2nd dialog box

what am i missing?!
thanks

Ok, what kind of menu i that?? context menu or mainmenu??

you said nothing happens, you mean when you click the menu nothing happens or even the menu doesn't show up??

can you show the code on how you crate the menu..??
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #3  
Old 15-Apr-2005, 03:00
phoenixblue phoenixblue is offline
New Member
 
Join Date: Apr 2005
Posts: 3
phoenixblue is on a distinguished road
Quote:
Originally Posted by Max Payne
Ok, what kind of menu i that?? context menu or mainmenu??

you said nothing happens, you mean when you click the menu nothing happens or even the menu doesn't show up??

can you show the code on how you crate the menu..??


- it's a mainmenu which i insert in the resource window so no code

- nothing happened meaning when i click on Execute Program no dialog, nothing run.. no pop up NOTHING!

- erm.. by the way... i dunno what i did but it's erm.. working now..
thank you..
 
 

Recent GIDBlogUS Elections and the ?Voter?s Responsibility? by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.