Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

urgent RegistryKey class questiob

Status
Not open for further replies.

Tdrgabi

Programmer
Jun 24, 2004
43
RO
hi
is there a way to create any other kind of value for a subkey (in win registers) other than string ...from c#

i was trying with registrykey.setvalue("subkey" (byte)value) but it makes an string value.

i need to write hex data into a binary value ....
 
You should be able to do this, as the docs say you can store binary values using Microsoft.Win32.RegistryKey.SetValue().

Try casting it to an array of byte instead of a single byte.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top