other

DbgPrint

파이s 2012. 10. 9. 16:57

DbgPrint로 찍고 싶은데, 관련 함수를 링크 시키기 어려?울때 (한마디로 짜증날때, madcodehook)

 

 

#include <stdio.h>
#include <stdarg.h>


void DbgPrint(const char *szMessage,...);
void DbgPrint(const char *szMessage,...)
{
va_list lst;
va_start(lst,szMessage);
char temp[2000];
wsprintf(temp,szMessage,lst);
OutputDebugString(temp);
}


use : DbgPrint(">>>>>>>>> hello \n");

 

Dbgview.exe