syntax error : ','

This is a discussion on syntax error : ',' within the C++ Programming forums, part of the General Programming Boards category; Whats wrong with this code? Code: hwndEdit = CreateWindow(TEXT ("edit"), NULL, S_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER ...

  1. #1
    eam
    eam is offline
    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
    eam
    eam is offline
    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 05: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, 02:07 AM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 03:09 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01: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, 04:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21