Hey all. I want to write a simple alarm clock that will play a wav file, probably using win32::sound . My idea for this little app, is that I will be able to enter the time that it will go off, and allow it go off at specified intervals afterwards. For instance, I want to set it to go off at 12:00pm and play the wav file every 5 minutes until I turn it off. The way I would probably do this, without a gui, is to read the file, figure out what time to go off, convert it to seconds and sleep until then. But I can't do that because the main gui loop is always running waiting for an event, correct? How would I do a periodic check on the alarm time, and not interfere with the main gui loop, can these be reconciled? I haven't really done any gui programming, I've just messed around a little bit with win32::gui . So my question may make rather evident that I don't have a clue :)
tia, --ed __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/