Jump to content

  • Log In with Google      Sign In   
  • Create Account


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); \
		}                                          	\

	#ifndef HR
	#define HR(x) x;