<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'DirectX Initialization Problem' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'DirectX Initialization Problem' posted on the 'Computer Graphics' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 15:06:44 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 15:06:44 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>DirectX Initialization Problem</title>
      <link>http://www.programmersheaven.com/mb/graphics/411094/411094/directx-initialization-problem/</link>
      <description>I'm so sorry if this is in the wrong section.&lt;br /&gt;
&lt;br /&gt;
My problem is that this line of code keeps failing:&lt;br /&gt;
&lt;br /&gt;
d3d = Direct3DCreate9 ( D3D_SDK_VERSION );&lt;br /&gt;
if ( !d3d )&lt;br /&gt;
{&lt;br /&gt;
     MessageBox ( hWnd, L"CGraphics::Initialize failed on Direct3DCreate9() ", L"Error!" , NULL );&lt;br /&gt;
     return false;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if this helps solve the problem, this is inside a function of a class, and the original definition of d3d is also in that class, which I coded so:&lt;br /&gt;
&lt;br /&gt;
LPDIRECT3D9 d3d;&lt;br /&gt;
&lt;br /&gt;
I keep getting my failure message box, and I cannot figure out why it keeps failing. I have searched the internet, and my initialization method appears to be the same as all the others that I have seen.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/graphics/411094/411094/directx-initialization-problem/</guid>
      <pubDate>Tue, 22 Dec 2009 10:15:54 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Re: DirectX Initialization Problem</title>
      <link>http://www.programmersheaven.com/mb/graphics/411094/411264/re-directx-initialization-problem/#411264</link>
      <description>Well, there aren't many reasons why this should fail.&lt;br /&gt;
&lt;br /&gt;
Check that you have DirectX version 9.0c(use DxDiag). If you do, then make sure the versions of the DirectX header files you are using match the library files you are linking against(d3d9.h/d3d9.lib), which means they should both be from the same SDK package(you'll probably want the DirectX SDK August 2009 version).&lt;br /&gt;
&lt;br /&gt;
If that doesn't help, then see if other DX9 applications also fail, in which case reinstalling DirectX 9 or the video card drivers might work.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/graphics/411094/411264/re-directx-initialization-problem/#411264</guid>
      <pubDate>Sun, 27 Dec 2009 18:21:53 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
  </channel>
</rss>
