Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


kaykry

Member Since 06 Oct 2011
Offline Last Active Private

Posts I've Made

In Topic: HR Instance not found

22 November 2011 - 09:57 PM

I'm not sure I understand your question but maybe this will help. If you look in the file d3dUtil.h you will see that HR is a macro defined as:

#if defined(DEBUG) | defined(_DEBUG)
	#ifndef HR
	#define HR(x)                                  	\
	{                                              	\
		HRESULT hr = x;                            	\
		if(FAILED(hr))                             	\
		{                                          	\
			DXTrace(__FILE__, __LINE__, hr, #x, TRUE); \
		}                                          	\
	}
	#endif

#else
	#ifndef HR
	#define HR(x) x;
	#endif
#endif

PARTNERS