Jump to content
  • Advertisement
Sign in to follow this  
Carthage

Problems with directX

This topic is 3262 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to run the code from this tutorial in visual studio 2008: http://thetavern.servebeer.com/?p=articles&a=D3DTutorial1 After messing with the library paths a bit I finally got it compiling. Running it triggers the error checking here:
	// Need to see if this format is ok as a backbuffer format in this adapter mode
	hResult = m_pD3D->CheckDeviceFormat(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
		mode.Format, D3DUSAGE_RENDERTARGET, D3DRTYPE_SURFACE, fmtBackbuffer);
	if(FAILED(hResult))
	{
		m_strError = L"Unable to choose a display format!";
		m_pD3D->Release();
		m_pD3D = NULL;
		return false;
	}
And gives this error printout: 'Tutorial01.exe': Loaded 'C:\Users\Nick\Documents\Visual Studio 2008\Projects\Tutorial\Debug\Tutorial01.exe', Symbols loaded. 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\user32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll' 'Tutorial01.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded. 'Tutorial01.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded. 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\version.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\d3d9d.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll' Direct3D9: :====> ENTER: DLLMAIN(654ca170): Process Attach: 000005e8, tid=00000ed0 Direct3D9: :====> EXIT: DLLMAIN(654ca170): Process Attach: 000005e8 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\ntmarta.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\Wldap32.dll' Direct3D9: (INFO) :Direct3D9 Debug Runtime selected. Direct3D9: (WARN) :****Direct3D DRIVER DISABLING ERROR****:First call to DdQueryDirectDrawObject failed! Direct3D9: (ERROR) :No hardware acceleration is available in the current mode 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shlwapi.dll' Direct3D9: (WARN) :****Direct3D DRIVER DISABLING ERROR****:First call to DdQueryDirectDrawObject failed! Direct3D9: (ERROR) :No hardware acceleration is available in the current mode 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shlwapi.dll' Direct3D9: (ERROR) :No hardware acceleration is available in the current mode Direct3D9: (ERROR) :No ddraw acceleration is available in the current mode 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shlwapi.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shell32.dll' 'Tutorial01.exe': Unloaded 'C:\Windows\SysWOW64\shlwapi.dll' The thread 'Win32 Thread' (0xdcc) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x2d8) has exited with code -1 (0xffffffff). Direct3D9: :====> ENTER: DLLMAIN(654ca170): Process Detach 000005e8, tid=00000ed0 Direct3D9: (INFO) :MemFini! Direct3D9: :====> EXIT: DLLMAIN(654ca170): Process Detach 000005e8 The thread 'Win32 Thread' (0xed0) has exited with code -1 (0xffffffff). The thread 'Win32 Thread' (0x5e4) has exited with code -1 (0xffffffff). The program '[1512] Tutorial01.exe: Native' has exited with code -1 (0xffffffff). I've looked and tried other solutions to this problem but no results. I'm wondering if it's a windows 7 issue or something else.

Share this post


Link to post
Share on other sites
Advertisement
Interesting, I never thought that'd fail... what do the Debug Runtimes say?

What that error essentially means is that the current desktop format isn't a valid format for D3D to use - which doesn't really make sense since explorer will be using that format for rendering already...

EDIT: From that output, it seems that your drivers can't do hardware acceleration in that graphics mode - do you have the latest drivers for your card? This sort of thing can happen if you don't have any drivers installed, and Windows is falling back to software support, or if you have the 3D acceleration settings turned off somewhere.

EDIT #2: This looks relevant, it seems to be a D3D SDK problem - you can disable the debug runtimes for now until the August 2009 SDK comes out.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!