Thread: syntax error : ','

  1. #1
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53

    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 : ','

  2. #2
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    Are your 'S_CHILD' and 'EDIT' defined properly? (i think both are of your own creation..)

  3. #3
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Oh,S_CHILD should be WS_CHILD. EDIT wasn't defined, it works now.
    Last edited by eam; 11-06-2003 at 06:07 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM