Advertisement

Adding keys etc to registry??

Started by August 06, 2001 09:33 AM
2 comments, last by Zeke 23 years, 6 months ago
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
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
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.
Advertisement
Ok, I''m not really an MFC user, but you can use the regular Win32 functions.

RegCreateKey should do exactly what you want.
Thanks guys. RegCreateKey and other funcs along those lines have done the trick cheers.
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

This topic is closed to new replies.

Advertisement