Archived

This topic is now archived and is closed to further replies.

Zeke

Adding keys etc to registry??

Recommended Posts

I need my app to add some stuff to the registry (i.e. Directories etc) how can i do this with c++ (im using mfc if that has any relevance). Can anyone give me any hints on how to do this? I have found some information on this in the msdn (SetRegistryKey()) But im having problems with it and Im really not sure if this is the right thing im looking for. Thanks for any help

Share this post


Link to post
Share on other sites
There''s a bunch of Windows API functions for this, SetRegistryKey sounds like one of them. Alternatively you could make (or have your program make) a .reg file and execute it.

Share this post


Link to post
Share on other sites
Thanks guys. RegCreateKey and other funcs along those lines have done the trick cheers.

Share this post


Link to post
Share on other sites