   Logging/Debugging with DirectX (in C++)
  is there a way to outputa) any type of data? (long, string, int...etc)b) if not a, then how can i convert a long to a string in un-managed c++?i have tried using "sprintf_s" with no success. i mean maybe it works, but the only way i know of to log the data is MessageBox, and when i do that i have to convert it to a LPCWSTRMessageBox(NULL, (LPCWSTR)buffer, L"LogMessage", MB_OK);and what i get is a bunch of character boxes.Can anyone help me?   
DbgView;If you need LPCWSTR's then you're in unicode mode and should be using swprintf_s.You can use MessageBoxA() to output const char*'s instead of wide character stringsYou can use OutputDebugString and OutputDebugStringA (A for const char* again) to output text to the debug output which you can view in the debugger, or with DebugView, as spookycat linked.