Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

запуск программы с обработкой кодов возврата


Stany ©   (2004-10-10 16:12:00) 

подкиньте код с реализацией сабжа


Cobalt   (2004-10-11 22:19:00) [1]

ExitCode variable

Contains the application's exit code.

Unit

System

Category

backward compatibility routines

Delphi syntax:

var ExitCode: Integer = 0;

Description

In Delphi code, the ExitCode variable contains the application's exit code.  An exit procedure can learn the cause of termination by examining ExitCode. If the program terminates normally, ExitCode is zero. If the program terminates due to a call to Halt, ExitCode contains the value passed to Halt. If the program terminates due to a runtime error, ExitCode contains the error code.

On Windows, setting the ExitCode variable to a value other than 0 in the initialization section of a unit will make loading of a DLL fail (DllMain will return false). You can also set ExitCode in code called from DllProc or DllProcEx to signal failure of loading.


Unknown Mystic   (2004-10-11 12:08:00) [2]

http://www.delphimaster.ru/cgi-bin/forum.pl?id=1093953932&n=5

Unknown Mystic ©   (20.09.04 13:19) [15] и дальше


tesseract   (2004-10-11 09:50:00) [3]

Код возврата чего? Функции? потока? процесса?


GuAV   (2004-10-10 16:39:00) [4]

CreateProcess
Wait Functions
GetExitCodeProcess


Наверх

Титульная страница Поиск, карта сайта Написать письмо