|
-
Mar 31st, 2000, 10:27 AM
#1
Thread Starter
Addicted Member
Hi.
I need some help here.
Im trying to get a value out of the registry and post it in a text box and also make a text box where the user can enter a new value for the key.
My problem is that the current value (made by another program) is in hex and I need that to be changed so the user can view it in decimal and not in Hex and then change back again when done editing the key.
anyone out there that can help me?
tried to read some tutorials from this site (and others) but they didn't help much.
Thanks anyway
-Lumin
-
Mar 31st, 2000, 11:55 AM
#2
New Member
Hex to Decimal to Hex Conversion
Hi
Assuming you have access to the reg key already, you could write a function using the subtraction or division method to convert from hex to decimal and convert it back when you are done. What you want to do with the decimal answer, I don't know.
An explanation of the conversion methods can be found in the Lecture #3 notes on Binary Math, at:
methodshttp://members.tripod.com/giftakis/c253lect3.html
[Edited by d_yard on 04-01-2000 at 12:09 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|