RE: time waits

new topic     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: Kat [mailto:gertie at PELL.NET]
> By the way, it says winmain takes two 
> arguements, so i argued with it twice, but it won't stop 
> saying that, no matter 
> how much i argue at it. Must i use a winmain window if all i 
> want is a timer?

You could probably get around opening a window by setting up your own event
loop (see eventLoop in win32lib), but it's probably easier to hide the
window when it opens, if you don't want to see it.  If you're just going to
be calling sleep() and then doing other things, you may not need a window.
If you actually want to use a windows timer, then you'll need to attach it
to a window.

A timer sends a message to its window when it goes off.  You have to have
your event loop set up to handle the messages sent by windows.

Matt Lewis

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu