How to get python console's stdin and stdout in msvc?
Nkym
nkym at yeah.net
Sun Mar 19 03:46:12 EST 2000
hi all:
I gotta write a IDE for python, I have
try the following code but no effert,
why?
Also, i wanna the console window not be
shown, but failed.
// create process
STARTUPINFO si;
memset(&si, 0, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
si.dwFlags = STARTF_USESTDHANDLES;
si.hStdInput = hIn;
si.hStdOutput = hOut;
si.hStdError = hError;
PROCESS_INFORMATION pi;
bRetval = ::CreateProcess(
"C:\\Program Files\\Python\\python
.exe", /* here, if I use a DOS ap
plication, all is OK */
NULL,
NULL,
NULL,
FALSE,
CREATE_NO_WINDOW,
NULL,
NULL,
&si,
&pi);
ASSERT(bRetval);
who can help me?
More information about the Python-list
mailing list