PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Registry question

Do I have to include MFC to be able to use the ppc registry?

If I do use MFC, are there any negative effects for my game?

I have tried using VORegistry which I found at http://www.pocketpcdn.com/articles/registry.html but that definatley requires MFC and I haven't yet successfully managed to add them to my game.

Any help or suggestions would be appreciated, please pardon my noobiness :P

Tone.
No, you certainly do not have to use MFC to work with the Registry.

Dan East
Thanks for the response :)

Any chance of ellaborating on what functions I should be using, or maybe a link to a site which could help me.

I've done some research and keep getting to dead ends.

Tone.
Tonegolf71 wrote:
Thanks for the response :)

Any chance of ellaborating on what functions I should be using, or maybe a link to a site which could help me.

I've done some research and keep getting to dead ends.

Tone.


MSDN should help
msdn.microsoft.com

RegOpenKeyEx
RegQueryValueEx
RegCloseKey

will read you a Registry key with no MFC strings attached...
I use RegCreateKeyEx to create the key.
Use RegQueryValueEx to retrieve a value, and test the return value of the function. If it doesn't equal ERROR_SUCCESS then use RegSetKeyEx to set a default value (like the first time the app is run).