Click here to Skip to main content
15,885,141 members
Articles / Programming Languages / C++

ESS: Extremely Simple Serialization for C++

Rate me:
Please Sign up or sign in to vote.
4.94/5 (14 votes)
26 Nov 2012BSD15 min read 86.8K   1.7K   68  
An article on persistent C++ objects. Includes several console mode test apps and an MFC GUI demo.
// DlgEdit.cpp : implementation file
//

#include "stdafx.h"
#include "ess_gui.h"
#include "DlgEdit.h"
#include ".\dlgedit.h"


// CDlgEdit dialog

IMPLEMENT_DYNAMIC(CDlgEdit, CDialog)
CDlgEdit::CDlgEdit(CString title,CWnd* pParent /*=NULL*/)
	: CDialog(CDlgEdit::IDD, pParent)
	, m_title(title)
	, m_csKey(_T(""))
	, m_csValue(_T(""))
	, m_csEmail(_T(""))
{
}

CDlgEdit::~CDlgEdit()
{
}

void CDlgEdit::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_KEY, m_csKey);
	DDX_Text(pDX, IDC_VALUE, m_csValue);
	DDX_Text(pDX, IDC_EMAIL, m_csEmail);
}


BEGIN_MESSAGE_MAP(CDlgEdit, CDialog)
END_MESSAGE_MAP()


// CDlgEdit message handlers

BOOL CDlgEdit::OnInitDialog()
{
	CDialog::OnInitDialog();

	SetWindowText(m_title);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}

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, along with any associated source code and files, is licensed under The BSD License


Written By
Architect
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions