win32程序呼出console方便调试

AllocConsole();
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
unsigned long lgsize;

WriteFile(hOutput,buff,strlen(buff),&lgsize,0);

posted @ 2014-09-17 15:09  coding_monkey  阅读(179)  评论(0编辑  收藏  举报