Re: CreateDevice() returns D3DERR_INVALIDCALL





On Jan 18, 4:52 pm, legalize+jee...@xxxxxxxxxxxxxxxxx (Richard
[Microsoft Direct3D MVP]) wrote:
[Please do not mail me a copy of your followup]

"PaulH" <paul.h...@xxxxxxxxx> spake the secret code
<1169159281.857148.189...@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?
September 2006

- Debug runtime installed?
Yes

- Debug runtime selected?
Yes

- What does the debug output say when you run your app?
Now this is interesting... I turned the debug up to the max in the
"DirectX Properties" app and now I see this:
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (ERROR) :Neither hDeviceWindow nor Focus window specified.
CreateDevice Failed.

I see my problem now.. The focus window is NULL, so my window creation
code hadn't been run yet.
Fixed! Thanks!

- All HRESULTs checked?
Yes, the HRESULT is the error code I'm posting (see code)


--
"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/>

Thanks for your help. If you haven't seen my reply to my own first post
where I mention that half the directx SDK utilties aren't running,
please take a look at it and see if you can't recognize the issue. I
have tried reinstalling the SDK and restarting the computer, but the
problem remains.

Thanks,
PaulH

.



Relevant Pages

  • Re: Security Update for PPV Does Not Install (KB956500)
    ... Bad news...I didn't get past step 1 on Jack Lu's solution. ... Was able to successfully Rename the Windows Update SoftwareDistribution ... Again, to get your error code number, open MS Update page. ... a new window pops up with your error code. ...
    (microsoft.public.powerpoint)
  • Re: How to get Computer Name given IP address?
    ... you don't necessarily have to provide "dialog" window handle. ... >> LPSHFILEOPSTRUCT fileop; ... >>> RussR, ... >>> Wierd error code. ...
    (microsoft.public.windowsxp.embedded)
  • Re: CreateDevice() returns D3DERR_INVALIDCALL
    ... it always fails with the error code ... dialog window isn't Direct3D, just one control. ... /// Our rendering device ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Problem with windows components
    ... The error code on Defender is code 0x80080005 ... The error in window setup is Setup library wbemupgd.dll could not be ... When I register the dll's I always get an error on ...
    (microsoft.public.windowsupdate)
  • Re: 0x8024502D error code.
    ... I would appreciate if any body help me to fixed my computer. ... When i try to update the window i get the error code 0x8024502D, ... > If the problem persists then we need to take a look at the WindowsUpdate.log ...
    (microsoft.public.windowsupdate)