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.
精彩评论