Im just learning about windows applications and i was trying to create a dialog box, but i keep getting an error: "127 winapp2.cpp
parse error before `{'"
(using Dev C++ 4)
Heres the code i'm using to create the dialog box:
It might be a problem with another part of my code but if someone can see a problem with this let me know.Code:BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: { return TRUE; } break; case WM_COMMAND: switch(LOWORD(wParam)) { case IDOK: EndDialog(hwnd, IDOK); break; case IDCANCEL: EndDialog(hwnd, IDCANCEL); break; } break; default: return FALSE; } return TRUE; }
EDIT: Found the problem...forgot a '}' in winproc



LinkBack URL
About LinkBacks


