Registry and supported types.

  • Thread starter Thread starter P
  • Start date Start date
P

P

Hi. What datatypes can I store in my registry on the compact framework using
the OpenNetCf registry classes? I wanted to store a long (Int64)
but it said that that datatype wasn´t supported. I had to cast it to a
string and store that. And revert it back ofcourse when retrieving it.

<Regards>

P
 
The registry itself doesn't support 64-bit numbers, so no matter what
langugae you use you either have to store it as a byte array, or as a string
like you're doing.
 
The supported data types of the registry are:-
32-bit integer (DWORD)
byte array
string
string array (which are stored as null separated strings with two nulls at
the end)

Peter
 
Back
Top