Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DebugPrint(LPCTSTR lpctFormat, ...)
- {
- va_list va;
- va_start(va, lpctFormat);
- boost::scoped_array<TCHAR> lptszBuffer(new TCHAR[4096]);
- _vstprintf(lptszBuffer.get(), lpctFormat, va);
- va_end(va);
- OutputDebugString(lptszBuffer.get());
- }
Add Comment
Please, Sign In to add comment