Y0rkieP
July 6th, 2007, 08:24 PM
Hi all,
I program as a hobby and learning on my way. Ive been learning c++, winAPI & simple to moderate GDI.
Ive made several clockfaces as bmp's, which are selectable and used TransparectBlt to draw them. After re-learning some maths, I used Lineto with sin / cos to draw the hands. Also I have chimes that turn on and off.
All this now works fine now, after fixing all the bugs (joy), but the clock dosent remember the last settings used. Ie: set chimes & set face.
Ive looked at RegCreateKeyEx and know I can use this to set / check the values, but there is so many entries. I assume to use HKEY_USERS (all users), but is there a correct place in which to put this entry? Is there any particular format to use or do I just pick a point at random? Are there any guides to look for on registry placement (I found nothing)?
If Ime going to do this, I should do it right from the start, rarther than create more bad habbits that I need to un-learn.
the values written will be:
nFace (1 to 5)
bChime (true/false(>0 or 0))
My thanks to all whom answer for your views...
I program as a hobby and learning on my way. Ive been learning c++, winAPI & simple to moderate GDI.
Ive made several clockfaces as bmp's, which are selectable and used TransparectBlt to draw them. After re-learning some maths, I used Lineto with sin / cos to draw the hands. Also I have chimes that turn on and off.
All this now works fine now, after fixing all the bugs (joy), but the clock dosent remember the last settings used. Ie: set chimes & set face.
Ive looked at RegCreateKeyEx and know I can use this to set / check the values, but there is so many entries. I assume to use HKEY_USERS (all users), but is there a correct place in which to put this entry? Is there any particular format to use or do I just pick a point at random? Are there any guides to look for on registry placement (I found nothing)?
If Ime going to do this, I should do it right from the start, rarther than create more bad habbits that I need to un-learn.
the values written will be:
nFace (1 to 5)
bChime (true/false(>0 or 0))
My thanks to all whom answer for your views...