Click here to Skip to main content
15,886,137 members
Articles / Desktop Programming / MFC
Article

Speaking Alarm Clock

Rate me:
Please Sign up or sign in to vote.
3.61/5 (11 votes)
12 Nov 20011 min read 134.9K   5.8K   46   17
Unique alarm application that works.

Introduction

Alarm application is a fully featured computerized alarm clock. It has unique interface and is stylish. It is based on my first program that I created in 1984 when I had the great Sinclair Spectrum 48K. That alarm clock was noisy when it was not in action :-). This one is hardly usable as a regular alarm clock. That is because of the noisy fan in the computer, I will never get used to sleep with the computer on ;-). The digits are created from a bitmap taken by a digital camera (the original bitmap from it was quite dirty (because of the JPEG lossy compression)).

This application is not written for any reuse in mind.

It seems that the alarm letters are not clear on some monitors :-(

Features

  1. Alarm is capable of keeping people awake :-).
  2. Digits interface is processed from digital image of electronic alarm clock (my stereo clock).
  3. Unique Interface (UI) (region adjusted with SetWindowRgn).
  4. Snap to invisible grid (when the window is moved).
  5. Applicable interactive option dialog.
  6. Speak clock with regular intervals (Icelandic) (class CSpeakNumber decodes all whole digit numbers).
  7. Filtered "edit" entry for clock "__:__".

Snapshots

There is just one menu (popup menu) that pops up when you use right mouse click or hit the menu key on the keyboard.

Options are few ...

Setting time dialog uses filtered edit control.

Note:

The code is not very well commented. CmEdit class is borrowed somewhere from, I don't know the author but he has the honor of that class. This is my first article at CodeProject ...

Send mail to adal@itn.is with questions or comments about this example.

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
Iceland Iceland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionWhat changes required to speak in English? Pin
Cheongtak10-Jul-09 4:25
Cheongtak10-Jul-09 4:25 
Generalrating should be higher for this article... Pin
Cheongtak9-Jul-09 4:25
Cheongtak9-Jul-09 4:25 
Generaldoes not work for me Pin
Anuj Sharma13-May-09 19:05
Anuj Sharma13-May-09 19:05 
GeneralGood job Pin
Mustafa Öner Dikdere (TR)4-Nov-07 5:26
Mustafa Öner Dikdere (TR)4-Nov-07 5:26 
GeneralAlarmSRC.zip Pin
Bijal15-Nov-02 23:45
Bijal15-Nov-02 23:45 
GeneralRe: AlarmSRC.zip Pin
Anonymous15-Nov-02 23:53
Anonymous15-Nov-02 23:53 
GeneralSpeak ? I didn't hear nothing ... Pin
progman15-Nov-02 7:28
progman15-Nov-02 7:28 
GeneralRe: Speak ? I didn't hear nothing ... Pin
LuisM12-Mar-05 2:13
professionalLuisM12-Mar-05 2:13 
It's because the snd_nIS.dll isn't loaded in CSpeakNumber::SayNumber.

All you have to do is to move that dll to the project folder.


GeneralGood Idea! Pin
yestart5-Mar-02 17:02
yestart5-Mar-02 17:02 
GeneralRe: Good Idea! Pin
6-Mar-02 1:23
suss6-Mar-02 1:23 
GeneralAlarm clock Pin
27-Jun-02 17:50
suss27-Jun-02 17:50 
GeneralI've downloaded all Pin
Jose Manuel Muélledes18-Nov-01 0:42
Jose Manuel Muélledes18-Nov-01 0:42 
GeneralNo pictures, no code. Pin
13-Nov-01 11:42
suss13-Nov-01 11:42 
GeneralSource Code Download Corrupt too! Pin
John Treubig13-Nov-01 2:22
John Treubig13-Nov-01 2:22 
GeneralRe: Source Code Download Corrupt too! Pin
Chris Maunder14-Nov-01 23:20
cofounderChris Maunder14-Nov-01 23:20 
GeneralAlarmEXE.zip corrupted Pin
12-Nov-01 20:39
suss12-Nov-01 20:39 
General.exe ERROR! Pin
12-Nov-01 17:22
suss12-Nov-01 17:22 

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.