I'm creating an MFC based dialog program. One Dialog has a button that launches a second modal dialog with a simple function - looks like this:
I want to step through functions in the CPreviewDlg class, but if I put a breakpoint in the CPreviewDlg class, it never breaks. If I put a breakpoint in the above function (which is in the main dialog), it never breaks. How to I make it break?Code:void CFrameDlg::OnBnClickedPreview() { CPreviewDlg Dlg; Dlg.DoModal(); }