15,471
社区成员
发帖
与我相关
我的任务
分享
do
{
ReadFile(read_pipe, &data, 1, &read_size, 0);
show_data[show_data_usage++] = data;
if(data == '\n')
{
show_data[show_data_usage] = 0;
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, show_data, show_data_usage + 1, show_data_uni, 128);
update_info_text(show_data_uni);
show_data_usage = 0;
show_data[0] = 0;
}
PeekNamedPipe(read_pipe, NULL, 0, NULL, &read_size, NULL);
}while(read_size);