CreateProcess(), CMD and character encoding.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
This is re-post, as I really could do with some help.. Hi. I have a simple console app which I use to CreateProcess() other console apps with re-directed output streams so that I can get hold of their output with PeekNamedPipe(). I have just noticed, by accident (which does not say much for my intensive testing) that in the output from the DOS tree command, the nice ASCII angle and bar characters are encoded incorrectly (I think with the default windows encoding). My App is built using MBCS which I understand is OK for ASCII, what do I need to do to get an output identical to the command-line invocation of TREE. Any thoughts are much appreciated. James.