-
January 16th, 2013, 11:34 AM
#1
How to remove application name from registry
In a typical MFC application I use SetRegistryKey(_T("My_Company")); to set the root registry entry for my application. The MFC application however creates an entry by the name of executable where it stores all the settings of that application. I don't want that because we often change the name of executable and I want it read registry from the same set location. As example if my application name is Calculator.exe and Calculator_debug.exe it creates two different registry settings.
My_Company\Calculator\settings
My_Company\Calculator_debug\settings.
How can I stop that?
-
January 16th, 2013, 12:23 PM
#2
Re: How to remove application name from registry
Just get rid of using CWinApp registry methods.
Instead you could use either raw Windows Registry Functions
or some classes like Microsoft CRegKey or ones "user developed" like
A Registry Class
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|