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.
How can I stop that?
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