Page 1 of 1

Writing Registry in WM2005

PostPosted: Aug 8, 2006 @ 10:34pm
by Bapdude

PostPosted: Aug 8, 2006 @ 11:14pm
by Kzinti

PostPosted: Aug 9, 2006 @ 1:01am
by Bapdude

PostPosted: Aug 9, 2006 @ 3:09am
by Kzinti

PostPosted: Aug 9, 2006 @ 6:09am
by Bapdude
Actually, that's a very good idea (I hadn't thought of that). I'll give that a try!

Thanks again...

PostPosted: Aug 9, 2006 @ 6:53am
by Bapdude
Okay, I used Messagebox() to verify that my registry data is being saved and loaded successfully. That being the case, the only other possibility (that I can think of) is that my datatypes, etc. are not correct/compatible for the structure that I am using to save my persistent data.

I am saving all persistent data as one large structure and as value type 'REG_BINARY'.

Once again, this code works perfectly on 2002/2003 devices, but not on WM2005.

Any thoughts?

PostPosted: Aug 9, 2006 @ 7:26am
by Bapdude
Well, I finally found the problem. I don't really understand the solution, but it works.

I have some TCHAR arrays set up in my persistent structure (high score names) that gets saved to the registry. Before loading values into this array from the registry, I would zero them out by using a for-loop to assign 'NULL' to each element in the arrays.

For some reason, doing this caused all my registry data to load corrupted. I removed the NULL assignments and it's working now. Very strange.

8O

PostPosted: Aug 9, 2006 @ 3:30pm
by Presto