You forgot to add the first argument...Code:case WM_CREATE: button = CreateWindow ( 0, TEXT ("Button"), TEXT ("New Game"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 1, 1, 100, 23, hwnd, (HMENU) IDB_BUTTON1, GetModuleHandle (NULL), NULL );
You forgot to add the first argument...Code:case WM_CREATE: button = CreateWindow ( 0, TEXT ("Button"), TEXT ("New Game"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 1, 1, 100, 23, hwnd, (HMENU) IDB_BUTTON1, GetModuleHandle (NULL), NULL );