Create Process -need a help

G

Guest

Hi i need to terminate the resulted console output to an array..i am a new
bee to vc ...for example in php..

$myvar=shell_exe("Myfile")

The output is in §myvar...how can i do it with this CreateProcess...

Thanx in advance,
venki

CreateProcess( NULL, // No module name (use command line).
TEXT("java"), // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
CREATE_NO_WINDOW, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
 
W

William DePalo [MVP VC++]

venki said:
Hi i need to terminate the resulted console output to an array..i am a new
bee to vc ...for example in php..

$myvar=shell_exe("Myfile")

The output is in §myvar...how can i do it with this CreateProcess...

Well, you can redirect the standard output device away from the console and
to something else. Then you read from that device into your "array".

This should get you started:

http://support.microsoft.com/?id=190351

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top