Wednesday, June 5, 2013

cAlarm

I just finished a project of mine. I ended up calling it cAlarm. It's and alarm clock capable of multiple alarms with repeat function for specific days of the week. When an alarm goes off it plays off a playlist of media files using winmm.dll, meaning it plays the media file as the form, but using whatever codecs you have on your system.


cAlarm implements a method for copying the files in a playlist to a folder. A feature i use all the time for copying music from my playlist in foobar2000 over to the USB drive i use in my car stereo. Foobar2000 is a great musicplayer btw.


The project also contains an example of serialization. Serialization is a way to save objects to files, and i have found it to be very useful and easy to implement. Im using it to save the list of alarms to a file, so the user can exit the program without loosing his alarms.


I have also tinkered around with some simple design features, like making a new-random color button that changes the layout's color to a random new one. Making all the forms have the same color when opened was something i didnt even consider untill now. Took abit of typing to get that integrated as well.


Tray icon is also in place. Alot more code than you would imagine.



So im putting this project up here so people can read the code, use the program, copy code, whatever really.

I still find faults and minor bug's every ten minutes i use this app, so what i upload here will probably be changed again in a few days and so on. The code is also rather sparse on comments at the moment, i might also fix that.

You can download the entire projectfolder as a .zip from this link.

No comments:

Post a Comment