Original Post
Hey I''m trying to make a DirectX application but am having troubles initializing directx. It should be making a fullscreen application but it stays windowed I''m pretty sure my CreateDevice is failing
// Create the d3d object
g_d3d = Direct3DCreate8(D3D_SDK_VERSION);
// Get adapter display mode
D3DDISPLAYMODE d3ddm;
g_d3d->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
// Set the presentation parameters
D3DPRESENT_PARAMETERS d3dpp;
d3dpp.BackBufferWidth = 800;
d3dpp.BackBufferHeight = 600;
d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8;;
d3dpp.hDeviceWindow = hWnd;
d3dpp.Windowed = FALSE;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
// Create the d3d device
g_d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_REF, hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp, &g_d3ddev);