-
syntax error : ','
Whats wrong with this code?
Code:
hwndEdit = CreateWindow(TEXT ("edit"), NULL, S_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0,0,0,0, hwnd, (HMENU) EDIT, ((LPCREATESTRUCT) lParam)->hInstance, NULL);
heres the error I'm getting
error C2059: syntax error : ','
-
Are your 'S_CHILD' and 'EDIT' defined properly? (i think both are of your own creation..)
-
Oh,S_CHILD should be WS_CHILD. EDIT wasn't defined, it works now.