call asci programs from unicode program
Posted: Tue Nov 16, 2010 3:17 pm
Hello,
I have a question regarding unicode and ascii.
My program is in unicode, but at one point it calls another exe with RunProgram().
This exe is ascii only.
I need to pass a parameter string, and read the program output and error.
If I compile in ascii it works, compiled in unicode it does not.
I already tried to convert the unicode strings to ascii before I pass them over, but that does not help.
My unicode/ascii conversion works for other parts of the program, so I guess I do soemthing wrong when using RunProgram.
Any ideas?
Thanks
I have a question regarding unicode and ascii.
My program is in unicode, but at one point it calls another exe with RunProgram().
This exe is ascii only.
I need to pass a parameter string, and read the program output and error.
If I compile in ascii it works, compiled in unicode it does not.
I already tried to convert the unicode strings to ascii before I pass them over, but that does not help.
My unicode/ascii conversion works for other parts of the program, so I guess I do soemthing wrong when using RunProgram.
Any ideas?
Thanks