I have been working on this problem for about a week and have not been able to figure this one out, hopefully someone here has an idea Here is what I am doing. I have a page where people can choose values like color, border, text displayed etc. When the person hits submit a registry file is created which is then pulled from our server and then is imported into the registry on a remote machine. I have all the hard work done but the problem that I am having is converting a hexadecimal value into the 32bit INT that is used in the registry. Our software coder could only tell me that colors are stored as 32 bit integers, only 24 of which are used - 8 each for the R,G and B values. Use the GetRValue, GetGValue and GetBValue Windows API calls; which I cant do from ASP. Here are two examples: hexadecimal #0000ff RBG 0,0,255 registry 00ff0000 And hexadecimal #A52A2A RBG 165,42,42 registry 002a2aa5 So what I need to do (I think) is break down the hex value into RBG and then convert it into the value you see for registry which is where I am stuck. Anyone have any suggestions?
I was able to figure this out with a few of my windows programmer friends. It turns out there was a problem with how our app was saving settings into the registry that I didn't know about that was causing so many problems. Also it turns out that the values needed to be reversed, then broken into 3 byte sets and each byte set reversed as well.