[Registry] writing multi string value to registry

  • Thread starter Thread starter Frederik Jensen
  • Start date Start date
F

Frederik Jensen

Thx. guys but still I experience the ArgumentException, also when I
try

Dim value() As String = New String() {"192.168.10.29"}
Dim value() As Object = New String() {"192.168.10.29"}

I conclude (for now) that I cannot pass a string array to
OpenNETCF.Win32.RegistryKey.SetValue(valueName, value).

Frederik Jensen, Judex
 
Where do you get the argumentexception? It certainly isn't on the line where
you create the array string. Is it when you make the call to SetValue? If it
is then you can step through it and see where it errors out (I would also
make sure you have the latest version of the registry code as multi string
arrays weren't always supported in the openetcf class).

Cheers
Daniel
 
Daniel Moth said:
Where do you get the argumentexception?

I get the exception when calling RegistryKey.SetValue(valueName,
value). Version information on the dll "OpenNETCF.Win32.Registry" is
"1.2.0.0". I am not able to step into SetValue as I only have the
compiled dll.

Frederik Jensen, Judex
 
Daniel Moth said:
...and is that the latest?

Unsuccessfully I have tried to figure out if 1.2.0.0 is indeed the latest
version. However, I have come by a solution: I have downloaded and compiled
the source code for the registry class. I am now using my own complied dll
and it works as expected: perfectly. Source and information can be found at
http://www.opennetcf.org. Thanks again.
 
Back
Top