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