>> The win32 API has a SetTimer() function that
>> lets you pass a callback procedure to be called
>> when the specified time period has elapsed.
>> Maybe it would be possible to implement this in Perl?

SetTimer() relies on sending a WM_TIMER message, and an event loop looking for
that.

If you can already break your program into tidy sections, and you have a message
loop, fine, but most windows code (and especially the APIs, which is where
people tend to block) just isn't made to be arbitrarily interrupted.

Like I said before, learn to do it the Win32 way, don't try to make Windows do
what it wasn't built to do, believe me, it won't surprise you with it's
flexibility in the way that Perl and Unix do.

Tim







_________________________________________________________________________
                                                                      
The information contained in this message is intended for the addressee
only and may contain confidential and/or privileged information.
If you are not the addressee, please delete this message and notify the
sender; you should not copy or distribute this message or disclose its
contents to anyone.
Any views or opinions expressed in this message are those of the author
and do not necessarily represent those of WestLB or any of its affiliates.
No reliance may be placed on this message without written confirmation
from an authorised representative of its contents.

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to