|
-
Sep 9th, 2001, 11:11 AM
#1
Thread Starter
Member
Showing a dialog boix
how to i show a dialog box i made in vc++, and my main app is made in mfc, if any one can help me with this it will be ever help full
-
Sep 9th, 2001, 12:03 PM
#2
Monday Morning Lunatic
In the dialogue editor, select "ClassWizard" from the right-click menu (on the dialogue). If it asks you to create a class answer yes (give it a reasonable name).
Then you can just use something like:
Code:
CMyNewDlg newDlg;
newDlg.DoModal();
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 9th, 2001, 12:07 PM
#3
Thread Starter
Member
so the function is domodel becoause i used showwindow and every thing you can think of , i create() and then showwindow still didnt work.
-
Sep 9th, 2001, 12:10 PM
#4
Monday Morning Lunatic
If you're using MFC then that's the way to go.
Otherwise you need to use CreateDialog, ShowWindow, and a message loop. Doing this with the API has been answered many times on this forum already.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 9th, 2001, 02:08 PM
#5
Thread Starter
Member
thanks man, its just that i didnt see anything about showing a dialog and i searched too
-
Sep 9th, 2001, 02:13 PM
#6
Thread Starter
Member
i tried what you said and it didnt work????
CPassWord frmPassWord;
frmPassWord.DoModal();
-
Sep 10th, 2001, 06:50 AM
#7
maybe upload the project for review?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|