Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » GUI persistence and private .INI files Collapse All
Subject Author Date
Thomas Fuchs Feb 11, 2005 - 4:00 AM

Hello there,


For some reason I’d like to use private .INI files rather than accessing the registry. After overwriting the CWinApp::m_pszProfileName member according to the MFC library reference and deleting the SetRegistryKey() call in InitInstance(), I have noticed that Prof-UIS still accesses the registry when trying to save or load the application’s GUI state. Is that behavior on purpose? Is there any way to force Prof-UIS saving the information to my .INI file?


Thanks,
Thomas

Technical Support Feb 11, 2005 - 6:32 AM

Dear Thomas,

Please take a look at the StateInFile sample application. It demonstrates how to load/save the user interface state from/to a disk file.

Thomas Fuchs Feb 11, 2005 - 7:12 AM

Thanks a lot for this hint. Had to do a little modification though, but now it works fine.


Best regards and have a nice weekend!