GetLastError() 1407

I can't create a window and GetLastError returns 1407
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
WNDCLASSEX wc;

    ZeroMemory(&wc, sizeof(WNDCLASSEX));

    wc.cbSize = sizeof(WNDCLASSEX);
    wc.style = CS_HREDRAW | CS_VREDRAW;
    wc.lpfnWndProc = WndProc;
    wc.hInstance = hInstance;
    wc.hCursor = LoadCursor(NULL, IDC_ARROW);
    wc.lpszClassName = L"Class";

    if(RegisterClassEx(&wc))
	{

		Direct3D.hWnd = CreateWindowEx(NULL, L"DirectX Teste", wc.lpszClassName, WS_OVERLAPPEDWINDOW | WS_EX_TOPMOST | WS_POPUP,
								0, 0, 10, 10, NULL, NULL, hInstance, NULL);
		int Teste = GetLastError();
	}
Last edited on
Last edited on
OMG what a terrible mistake thx a lot
Topic archived. No new replies allowed.