Not sure which value you think should be binary.. ipaddresses are stored as
strings in the registry... Assuming you got your paths right try it with a
string (you'll need to rebind your driver OR flush the registry and restart
the unit)
Note that you do not need to escape the backslashes in VB like your sample
shows...
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
Daniel,
Thanks, the string I am trying to save as binary is the bipaddress
I tested again as a string in the registry, doesnt work. I used a program
called "Pocket Hosts" to create a new hosts entry and it saves the ipadress
in a binary value key. I can convert the dec to binary, but I cant fingure
out how to save the key value as a binary key.
I can convert 192 168 2.3 to C0 A8 02 03 but the key type needs to be
binary. When I use the setvalue below is creates as a string, the response I
got from OpennetCf was "nipaddress needs to be a byte array for the data to
be written as a binary value" Is there a way to convert the string variable
to a binary variable?
> Not sure which value you think should be binary.. ipaddresses are stored as
> strings in the registry... Assuming you got your paths right try it with a
[quoted text clipped - 30 lines]
> > regVersion.SetValue("ipaddr", bipaddress)
> > regVersion.Close()
Daniel Moth - 28 Feb 2005 22:04 GMT
Any registry code will write to the registry whatever you pass to it. To
write binary you must pass it a byte array. So if you have the bytes just
add them to a byte array and pass that to the SetValue method. If you have
more problems post your updated code indicating which line fails.
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
> Daniel,
>
[quoted text clipped - 55 lines]
>> > regVersion.SetValue("ipaddr", bipaddress)
>> > regVersion.Close()
<ctacke/> - 28 Feb 2005 22:12 GMT
Encoding.ASCII.GetBytes
-Chris
> Daniel,
>
[quoted text clipped - 55 lines]
>> > regVersion.SetValue("ipaddr", bipaddress)
>> > regVersion.Close()