Hi,

When I compiled and ran the sample code from DirectX 8.1 SDK Tutorial 1,
CreateDevice, I got a D3DERR_INVALIDCALL return value from CreateDevice()
and the sample app failed.

...
HRESULT hRst = g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp, &g_pd3dDevice );
...

I did copy the code from Platform SDK without any changes. And I am sure
that I have installed DirectX 8.1.

Is there anyone know what this error means? What should I do then? I am a
freshmen for DirectX SDK development.

Thanks for your help in advance.