开发者

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

开发者 https://www.devze.com 2023-02-10 20:09 出处:网络
I want to put the output of an cmd-command (e.g. \"assoc\") into a textbox. I managed this with pipes.

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

精彩评论

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

关注公众号