Re: CreateDevice() returns D3DERR_INVALIDCALL



[Please do not mail me a copy of your followup]

"PaulH" <paul.heil@xxxxxxxxx> spake the secret code
<1169159281.857148.189400@xxxxxxxxxxxxxxxxxxxxxxxxxxx> thusly:

I have a dialog app where I'd like to have a control that is direct3d
rendered. So, when this control's window is created I call an
CreateDevice() as below. But, it always fails with the error code
D3DERR_INVALIDCALL (0x8876086c). [...]

Standard questions apply:
- what versoin of the SDK are you using?
- Debug runtime installed?
- Debug runtime selected?
- What does the debug output say when you run your app?
- All HRESULTs checked?

--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
.



Relevant Pages

  • Re: Application hangs in IDirect3D::CreateDevice
    ... [Please do not mail me a copy of your followup] ... the newly created window as hWndFocus. ... Are you calling CreateDevice in response to WM_CREATE? ... Legalize Adulthood! ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Device Context from Back Buffer in D3D
    ... >use the Windows-supplied cards.dll to write to my window. ... >context from the back buffer, then having the DLL API write to that DC. ... debug runtime installed? ... "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: IDirect3DQuery9::GetData() fails to return S_OK on multi-core CPUs
    ... [Please do not mail me a copy of your followup] ... using IDirect3DSwapChain9::Presentto display it on the screen. ... Standard questions apply: ... no messages from the debug runtime? ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Cause Reboot while using D3DCREATE_HARDWARE_VERTEXPROCESSING
    ... [Please do not mail me a copy of your followup] ... D3DCREATE_HARDWARE_VERTEXPROCESSING, it reboot my computer. ... may it be the problem of driver? ... debug runtime installed? ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Why dont the tutorials work?
    ... [Please do not mail me a copy of your followup] ... debug runtime installed? ... (enable unmanaged debugging, or run dbmon) ... "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: ...
    (microsoft.public.win32.programmer.directx.managed)

Loading