Hi,
My applet replaces the mailslot that is open by the Messenger service (WinPopup in 9x), and waits for incoming messages.
What is the best way to react to an event? Should I use a timer that calls a callback procedure every X seconds? Should I use a WHILE/WEND with a sleep() in the middle?
CreateMailslot ()
While app exists
GetMailslotInfo ()
If sthing to read
ReadFile ()
end if
wend
Thx
FF.
------------------
My applet replaces the mailslot that is open by the Messenger service (WinPopup in 9x), and waits for incoming messages.
What is the best way to react to an event? Should I use a timer that calls a callback procedure every X seconds? Should I use a WHILE/WEND with a sleep() in the middle?
CreateMailslot ()
While app exists
GetMailslotInfo ()
If sthing to read
ReadFile ()
end if
wend
Thx
FF.
------------------
Comment