Try initializing the following 2 variables in your CWinApp

m_pszProfileName <---- The application's .INI filename.
m_pszRegistryKey <---- Used to determine the full registry key for storing application profile settings.

-Safai