开发者

Windows: Read CMD-Output and bring it to a textbox (Edit) in C++

I want to put the output of an cmd-command (e.g. "assoc") into a textbox. I managed this with pipes.

BUT

New lines (\n) on the console aren't shown in the textbox...

So 开发者_运维知识库if "assoc" results in

.xxx=xxx
.yyy=yyy
.zzz=zzz

there is

.xxx=xxx.yyy=yyy.zzz=zzz

in the textbox

So what can I do?


Convert LF (\n) char to CR/LF (\r\n) in the output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜