Click here to Skip to main content
15,878,809 members
Articles / Desktop Programming / MFC
Article

Simple Alarm Application

Rate me:
Please Sign up or sign in to vote.
4.47/5 (23 votes)
22 Mar 20041 min read 79.6K   5.6K   35   11
A simple delay alarm and preset time alarm that pops up a window and/or play a WAV/MP3. There is also a snooze.

Sample Image - Alarm.jpg

Introduction

This application, though simple, is very useful; in the case you ordered a pizza during your programming session and you don't want to let the delivery man being angry standing out (or any other application).

Although the source code is given, you don't really need it to use the application. But, still you are a programmer, you are free to bring your modification, as you wish.

There are two main class: the main dialog (setup dialog), and the popup window that pops the alarm. There are two types of alarm available, that can be used independently. A delay alarm, when you only know in how much time you want to get annoyed. And a preset time alarm, when you know exactly the time you want to be disturbed.

The application can be started at Windows startup, in the case of a preset time alarm. The alarm can be the form of a sound file (wave or MP3) and/or a window popup. The sound repeats itself while the window stays on top. You can set the repeat time on the popup window, you can snooze the alarm (and still setting the snooze time).

The application can also be hidden on the tray.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionTiny bug in CAlarmDlg::SetAlarm() Pin
Versy Stems20-Nov-18 0:20
Versy Stems20-Nov-18 0:20 
Generalsiren software Pin
Member 1222095221-Dec-15 5:07
Member 1222095221-Dec-15 5:07 
AnswerRe: siren software Pin
OriginalGriff21-Dec-15 5:09
mveOriginalGriff21-Dec-15 5:09 
GeneralMemory Leaks too Pin
dukdukduk7-Feb-07 9:27
dukdukduk7-Feb-07 9:27 
GeneralOnce more -- Thank you Pin
Gammill4-Dec-05 19:13
Gammill4-Dec-05 19:13 
I lost my disk -- had to reload. Today, I needed to
set an alarm to remind me of the wash in the dryer Smile | :)
No alarm to run! Off to code project and collect your
program again. Once more -- Thanks!

WedgeSoft
Generalthank you Pin
Gammill4-Dec-04 8:06
Gammill4-Dec-04 8:06 
GeneralCompile errors. Pin
WREY24-Mar-04 5:48
WREY24-Mar-04 5:48 
GeneralRe: Compile errors. Pin
mimosa3-Apr-04 10:22
mimosa3-Apr-04 10:22 
GeneralRe: Compile errors. Pin
LabRat5-Apr-04 14:32
LabRat5-Apr-04 14:32 
GeneralRe: Compile errors. Pin
Neo.Liang21-Dec-06 15:48
Neo.Liang21-Dec-06 15:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.