You should have declared a dialog in your resource file with the id
, and you should also have a definition for
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"
LTEXT "This is the dialog", IDC_STATIC, 80, 14, 100, 8
#define IDD_DLGFIRST 132
If you are using the Visual Studio dialog and class wizards then these values should be generated automatically for you.