Вниз
Скачать: CL | DM;

что не так?   Найти похожие ветки 

← →
thoth ©   (2004-10-01 12:52) [0]

Хочу использовать функцию:
function WinExecAndWait(Path: PChar; Visibility: Word): Word;
var
 InstanceID: THandle;
 Msg: TMsg;
begin
 InstanceID := WinExec(Path, Visibility);
 if InstanceID < 32 then { значение меньше чем 32 указывает на ошибку }
   WinExecAndWait := InstanceID
 else
   repeat
     while PeekMessage(Msg, 0, 0, 0, pm_Remove) do
     begin
       if Msg.message = wm_Quit then
         Halt(Msg.WParam);
       TranslateMessage(Msg);
       DispatchMessage(Msg);
     end;
   until
     GetModuleUsage(InstanceID) = 0;
 WinExecAndWait := 0;
end;

Но при компиляции выдает сообщение:  Undeclared identifier: "GetModuleUsage"

Что я забыл?


← →
MBo ©   (2004-10-01 13:08) [1]

Используй лучше CreateProcess, пример есть в FAQ



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.023 c
14-1097805547
Думкин
2004-10-15 05:59
2004.11.07
С днем рождения! 15 октября


14-1098185323
Cosinus
2004-10-19 15:28
2004.11.07
Хм... А чем выдернуть иконки из icl-файла (Icon Library)?


1-1098512991
Леван
2004-10-23 10:29
2004.11.07
Как изменить цвет фона определенного участка Richedit


1-1098688968
MadSnake
2004-10-25 11:22
2004.11.07
запуск другого приложения из service-приложения


1-1098803527
Darrin
2004-10-26 19:12
2004.11.07
Передача ссылки на метод класса.




   Наверх