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
Printable View
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
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();
so the function is domodel becoause i used showwindow and every thing you can think of , i create() and then showwindow still didnt work.
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.
thanks man, its just that i didnt see anything about showing a dialog and i searched too
i tried what you said and it didnt work????
CPassWord frmPassWord;
frmPassWord.DoModal();
maybe upload the project for review?