I'm trying this little D3D9 test app. It runs fine on my GeForce4, on my server with only onboard gfx, and on my dads PC (Win98, TNT2). However, it refuses to run on my mates computer (TNT2, WinXP). When it gets to CreateDevice(), it returns D3DERR_NOTAVAILABLE ("This device does not support the queried technique"). But i don't know what parameter its objecting to.
Here's how i set up the presentation params:
m_thePresentParams.BackBufferWidth = m_vModes[m_nSelectedMode].nWidth;
m_thePresentParams.BackBufferHeight = m_vModes[m_nSelectedMode].nHeight;
m_thePresentParams.BackBufferCount = 2;
m_thePresentParams.MultiSampleType = D3DMULTISAMPLE_NONE;
m_thePresentParams.MultiSampleQuality = 0;
m_thePresentParams.SwapEffect = D3DSWAPEFFECT_DISCARD;
m_thePresentParams.hDeviceWindow = m_hWnd;
m_thePresentParams.Windowed = TRUE;
m_thePresentParams.BackBufferFormat = D3DFMT_UNKNOWN;
m_thePresentParams.EnableAutoDepthStencil = FALSE;
m_thePresentParams.AutoDepthStencilFormat = D3DFMT_UNKNOWN;
m_thePresentParams.Flags = 0;
m_thePresentParams.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
m_thePresentParams.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
And i create the device like so:
hResult = m_pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,m_hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&m_thePresentParams,&m_pDevice);
And at the call to CreateDevice(), hResult == D3DERR_NOTAVAILABLE.
I've made sure my mate has DX9 installed, and has the latest drivers.
Anyone know whats going on here?
[edited by - Evil Steve on August 19, 2003 11:53:30 AM]