Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.11.07;
Скачать: 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 вся ветка

Текущий архив: 2004.11.07;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.047 c
14-1098358614
Layner
2004-10-21 15:36
2004.11.07
Где можно купить Delphi 7? (лиц)


1-1098340163
AntonSh
2004-10-21 10:29
2004.11.07
Строка


3-1097199322
Black
2004-10-08 05:35
2004.11.07
Как узнать какая строка в DBGrid е выбрана?


14-1098191610
Uran
2004-10-19 17:13
2004.11.07
Installshields


4-1096373253
-SeM-
2004-09-28 16:07
2004.11.07
Разная работа приложения в 9х/ХР