By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

READING hex value in registry

P: n/a
i've a DWORD hex value in the registry key.

i can read the key and write to event log, however it writes in "decimal"
format.

how can i ensure it is read as per hex format ?

Feb 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"James" <jk****@hotmail.com> schrieb
i've a DWORD hex value in the registry key.
A DWORD has a value, but it does not have a format, so it's neither Hex nor
decimal. Strings do have a format.
i can read the key and write to event log, however it writes in
"decimal" format.
value.ToString("X8")

converts to a string in hex format.
how can i ensure it is read as per hex format ?


The value is read. The value has no format.
Armin

Feb 20 '06 #2

P: n/a
James,

The integers.tostring("x") will convert the number to hexidecimal

Ken
--------------
"James" <jk****@hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
i've a DWORD hex value in the registry key.

i can read the key and write to event log, however it writes in "decimal"
format.

how can i ensure it is read as per hex format ?

Feb 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.