I am trying to create and use some modelless dialogs in my dialog based project. I can't seem to get it to work although I am following MSDN exactly (as far as I know). This is what I am doing to try to get a modelless dialog to appear:

CTestDlg testdlg;
testdlg.Create(IDD_TESTDLG, NULL);
testdlg.ShowWindow(SW_SHOW);

But it doesnt show up. It looks as if it pops up and immediately closes before I can really see it.
Please help.