Original Post
I've been doing a LOT of debugging and I know it's this function that's not working, wtf am I doing wrong? I *know* it's this function, so please don't tell me about anything other than this code or setting up the present parameters.
if (!g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &g_pd3dDevice))
{
return 3;
}