Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.01.29;
Скачать: CL | DM;

Вниз

Таймер в DLL   Найти похожие ветки 

 
nucl ©   (2004-01-17 14:31) [0]

Как правильно реализовать таймер внутри DLL для использования его внутри самой DLL ?


 
Nucl ©   (2004-01-17 14:57) [1]

никто ничего ?


 
Nucl ©   (2004-01-17 17:04) [2]

ну же ... ?


 
Бином Ньютоныч   (2004-01-17 20:55) [3]

function ShowDelayedMsg(Timeout: Cardinal): bool; stdcall;

implementation

type
TTimerEventCls = class
class procedure TimerEvent(Sender: Tobject);
end;

var
Timer: TTimer = nil;

function ShowDelayedMsg(Timeout: Cardinal): bool;
begin
Result:=false;
if Timer = nil then Timer:=TTimer.Create(nil)
else if Timer.Enabled then Exit;
Timer.OnTimer:=TTimerEventCls.TimerEvent;
Timer.Interval:=Timeout;
Timer.Enabled:=true;
Result:=true;
end;

{ TTimerEventCls }

class procedure TTimerEventCls.TimerEvent(Sender: Tobject);
begin
Timer.Enabled:=false;
MessageBox(0, "DLL message", "DLL", 0);
end;


 
Eagle Owl ©   (2004-01-17 23:02) [4]

А можно добавить DataModul и в него поместить таймер...



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

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

Наверх




Память: 0.47 MB
Время: 0.017 c
1-93552
Mihey
2004-01-17 19:39
2004.01.29
EOutOfResources - нехватает хэндлов


8-93583
gagarin
2003-09-26 05:16
2004.01.29
midi


8-93593
_SHURIK_
2003-08-29 14:33
2004.01.29
Проблема с Flash


4-93730
Rimd
2003-11-24 00:27
2004.01.29
CreateWindow


7-93712
dron
2003-11-12 12:47
2004.01.29
Как программно создать переменную окружения