VCB printf 输出到文本框
本文地址:http://tongxinmao.com/Article/Detail/id/505
void printf(const char * format, ...)
{
char *buff = new char[1024*5 + 32];
DWORD len;
va_list ap;
try
{
va_start(ap, format);
len = vsnprintf(buff, 1024*5+32, format, ap);
va_end(ap);
buff[len]=0;
Form1->Memo1->Lines->Add(String().sprintf("%s",buff)) ;
}
catch (...)
{
len = 0;
}
delete []buff;
}
上一篇:蓝牙转USB键盘鼠标
下一篇:P:1/1 X:553 Y:1851 Xv:0:0 Yv:0:0 Prs:1.0 Size:0.13 安卓触摸参数