You should have declared a dialog in your resource file with the id
IDD_DLGFIRST
, and you should also have a definition for
IDD_DLGFIRST
in your resource.h header. Something like:
IDD_DLGFIRST DIALOGEX 200, 100, 266, 240
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_CENTER
CAPTION "Dialog Test"
FONT 10, "Verdana"
BEGIN
LTEXT "This is the dialog", IDC_STATIC, 80, 14, 100, 8
END
#define IDD_DLGFIRST 132
If you are using the Visual Studio dialog and class wizards then these values should be generated automatically for you.