Thank you very much for taking time from you busy day to help me out. I very much appreciate it. I need to pass a variable to a dialog box.
When I call dlg.DoModal() I need to somehow pass the pDoc into the dialog box. Everything I need the variable for is taking place inside the oninitdialog function. Is there anyway to pass the variable to that function? Again thank you very much for the help.Code:Doc* pDoc; Dialog dlg; int input = dlg.DoModal();