ive dont a little research on this but havent found anything that really tells just how to do this one thing, and that is when my program loads check the registry to see if there is a bool value set to 1 at a certain key, if not execute a segement of code, if everything goes ok there create the key and a bool value and set it to 1, then do the rest of the program
as far as i can gather i need to create a HWIN handle and then try and read the value of something at a certain key, only problem is that the only examples ive seen involve writing strings, and thats not what i need to do =/, so if any one out there could either point me to a place with a good example of this or show me the lines of code needed to read the registry key (if it doesnt exist DONT create it), and then the part to write to it, i already know everything else in my program that i need to do, i just want to save the settings in the registry (because thats where id like to put settings for all future programs from now on)
as far as i can gather i need to create a HWIN handle and then try and read the value of something at a certain key, only problem is that the only examples ive seen involve writing strings, and thats not what i need to do =/, so if any one out there could either point me to a place with a good example of this or show me the lines of code needed to read the registry key (if it doesnt exist DONT create it), and then the part to write to it, i already know everything else in my program that i need to do, i just want to save the settings in the registry (because thats where id like to put settings for all future programs from now on)