Click here to Skip to main content
15,885,954 members
Articles / Desktop Programming / MFC

Save Application Settings to XML

Rate me:
Please Sign up or sign in to vote.
3.92/5 (5 votes)
16 Sep 20022 min read 258.5K   1.8K   54  
An easy to use class that reads, writes and deletes app settings to an XML file.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by XmlSettingsTest.rc
//
#define IDD_XMLSETTINGSTEST_DIALOG      102
#define IDR_MAINFRAME                   128
#define IDB_BITMAP1                     129
#define IDB_BITMAP2                     130
#define IDC_KEYPATH                     1000
#define IDC_VALUENAME                   1001
#define IDC_READRADIO                   1004
#define IDC_WRITERADIO                  1005
#define IDC_STRINGRADIO                 1006
#define IDC_LONGRADIO                   1007
#define IDC_VALUE                       1009
#define IDC_FILEPATH                    1010
#define IDC_VALUESTATIC                 1011
#define IDC_VIEW                        1012
#define IDC_DELETERADIO                 1013
#define IDC_QUESTION                    1014

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1015
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
I have been a professional developer since 1996. I live in Illinois, in the USA. I am married and have four children.

Comments and Discussions