Building robust registry read/write code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need to read/write to the registry of a mobile device to access program
settings.

Should I access these register settings only on startup and during
modifications to the settings or is there a performance advantage to read
directly to/from the registry whenever this information is needed?

Thanks for advice.

Regards, drumred
 
It doesn't matter when you read the info. CF 2.0 already has a full set of
functions that mirror the desktop classes. For CF 1.0, the SDF provides the
same.
 
I'm able to write and read to/from the registry. I was just wondering if
it's good programming practice to open up the registry and read values, then
close the registry on a semi-regular basis. Or should I move the registry
value to a new variable that would be used. Of course, I'm new at registry
use.

Regards,
drumred
 
It really makes no difference.

-Chris


drumred said:
I'm able to write and read to/from the registry. I was just wondering if
it's good programming practice to open up the registry and read values,
then
close the registry on a semi-regular basis. Or should I move the registry
value to a new variable that would be used. Of course, I'm new at
registry
use.

Regards,
drumred
 
Back
Top