   Problem with DXTrace
  Hi again,I was reading through Frank Luna's Intro to 3D Game Programming with DirectX 9.0C: A Shader Approach, and when I tried to copy his HR macro into my own application, I get this error:error C2664: 'DXTraceW' : cannot convert parameter 4 from 'const char [8]' to 'const WCHAR *'This is the macro:#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 In my application, I use it like so:HR(D3DXCreateSprite(mDevice, &mSprite));Do you have any ideas on why I get this error?(I haven't done much with #if, #else,... and this is my first time using DXTrace)Thanks.   
  Your project is set to use Unicode.  If you want to keep it that way, change the macro to this:#define HR(x) \ { \ HRESULT hr = x; \ if(FAILED(hr)) \ { \ DXTrace(__FILE__, __LINE__, hr, L#x, TRUE); \ } \ }Otherwise, if you turn it off, there's a known issue with DXTraceA, which will cause issues.  You need to explicitly call the DXTraceW function to get the behavior you want.  So I recommend you make the following change, which should work regardless:#define HR(x) \ { \ HRESULT hr = x; \ if(FAILED(hr)) \ { \ DXTraceW(__FILE__, __LINE__, hr, L#x, TRUE); \ } \ }   ;  Ok, thanks. It works now.   