OutputDebugString()函数

<windows.h> 

 

 

inline void debugout(const char* fmt, ...)
{
    char buf[512];
    try{
        va_list ap;
        va_start(ap,fmt);
        _vsnprintf(buf,sizeof(buf)-1,fmt,ap);
        va_end(ap);

        OutputDebugString(buf);
    }
    catch(...)
    {
        OutputDebugString("exception in construct debug message\n");
    }
}

 

posted on 2013-08-24 17:26  makeup1122  阅读(228)  评论(0编辑  收藏  举报

导航