I don't fully understand what the compiler means by saying it expects a WORD. I went through winprog.org, and some other examples, and still don't quite understand what's happening.
Error: `struct DLGTEMPLATE' used where a `WORD' was expectedCode:case ID_FILE_DLG: { DLGTEMPLATE TEMP; TEMP.style = DS_CENTER | DS_MODALFRAME; TEMP.x = CW_USEDEFAULT; TEMP.y = CW_USEDEFAULT; TEMP.cx = 350; TEMP.cy = 250; TEMP.cdit = 1; DLGITEMTEMPLATE Temp; Temp.style = WS_POPUP | WS_VISIBLE | BS_PUSHBUTTON; Temp.x = 25; Temp.y = 25; Temp.cx = 50; Temp.cy = 50; Temp.id = ID_DLGEND; DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(TEMP), // <-- WORD expected here hwnd, DlgProc); } break;



LinkBack URL
About LinkBacks



