RE: pParam ...
Change DialogBox(hInst , (LPCTSTR)IDD_DIALOG1, hWnd, (DLGPROC)MyDlg);
to DialogBox(hInst , MAKEINTRESOURCE(IDD_DIALOG1), hWnd, (DLGPROC)MyDlg);
This works with VC++: not sure about others though. Also, make sure that you include the 'resource.h' file in all cpp files that deal with the dialog.
|