Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Visual C++ 6.0, simple MFC project

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need help!!!! please i need help with Microsoft Visual C++ 6.0, i made a simple MFC project, Dialog based. I want to link a simple button to another Dialog. so when you click OK on the main dialog another window pops up :) iam a newbe @ programing and if i could just fig this one out i think iam on my way to makeing some kool simple programs :)
 
Follow this steps:

1. Go to resorces, add a new dialog, and customize it as you wish.
2. When you are finished press Ctrl+W(to open Class Wizard)
and confirm that you want to create a new class.(let's say CMySecondDlg)
3. Then go to the first dialog resource and double-click the button that you want to call the second dialog, to open the code window.
4. add the following lines instead of the //TODO commented lines:

CMySecondDlg dlgSecond;
dlgSecond.DoModal();

5. Go to head of the same file and add the line:
#include "MySecondDlg.h"

That's all. Good luck,s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top