Thursday, June 6, 2013

Create .ico icons easy

In my last post a presented some work i did, and there is one thing i thaught i would shed a bit of light on, and that is icons.
I used mspaint to create my graphix this time, i'm a fan of Photoshop but for creating a simple icon like mine paint is a ok enough. And of course, Photoshop cost at least an arm and a leg, meaning less money for keg.

However, mspaint cannot simply save your image as a .ico file. And no, you cannot simply rename your .jpeg's either.


But there is a web service for just this, and it's free. It's http://convertico.com/ I have used it alot, and it's just great. And again.. FREE.
So, just save your file as .png and slam those .png's onto the webpage. And it will return you your .ico file within seconds, simple as that.

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.