right click on current project(for example:Project1)and then
Add and then
resource
in new dialog box , right click on background of dialog and
Add Class
Set the Class Name to
CSecondDlg and base it on
CDialog
now go to
project1Dlg.cpp and add this :
#include "SecondDlg.h"
and this code for button that you want to open second dialog:
CSecondDlg dlg;
dlg.DoModal();
did u mean this?!!