Показать сообщение отдельно
Старый 21.05.2003, 16:49   #4   
Форумец
 
Аватар для fishca
 
Сообщений: 708
Регистрация: 23.12.2002
Возраст: 52
Записей в дневнике: 1

fishca вне форума Не в сети
Цитата:
"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.
)
  Ответить с цитированием