Цитата:
|
"start c:\\Document.doc",
|
А вот так попробуй и жди окончания работы Word-a.
Или тебе обязательно надо через start?
CreateProcess( NULL, // No module name (use command line).
"winword.exe Document.doc", // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // 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.
)