Posted on 1998-09-30
I would like to have one INI file for my application in the application root directory.
I´m doing the following in InitInstance()
//First free the string allocated by MFC at CWinApp startup.
//The string is allocated before InitInstance is called.
free((void*)m_pszProfileName);//Change the name of the .INI file.
//The CWinApp destructor will free the memory.
But, MFC is putting my INI file in the windows directory.
How can i change this?
My thanks in advance.