Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualmrheisenberg

Posted 27 March 2013 - 08:35 PM

Yes, I use the updated ones everywhere, however I don't understand this:
 

/ Create a factory to enumerate all of the hardware in the system.

    IDXGIFactory1* pFactory = 0;
    hr = CreateDXGIFactory1( __uuidof(IDXGIFactory), (void**)(&pFactory) );

Shouldn't it be IDXGIFactory1? I'm using IDXGIFactory1, maybe that's the issue?
It also worries me that the SafeRelease macro causes a crash, even if I use 0 instead of nullptr, could be a hint at the problem.

 


on a side note - I just now notice GameDev has colors for DirectX in the code tags lol


#1mrheisenberg

Posted 27 March 2013 - 08:26 PM

Yes, I use the updated ones everywhere, however I don't understand this:
 

/ Create a factory to enumerate all of the hardware in the system.

    IDXGIFactory1* pFactory = 0;
    hr = CreateDXGIFactory1( __uuidof(IDXGIFactory), (void**)(&pFactory) );

Shouldn't it be IDXGIFactory1? I'm using IDXGIFactory1, maybe that's the issue?
 

 


on a side note - I just now notice GameDev has colors for DirectX in the code tags lol


PARTNERS