I've been working on this little project for weeks and I'm stuck.
I have created a dialog that has three tabbed property pages. Each one contains text boxes for entering different types of data for an employee. Each employee has a single database entry (1 row) that lists all the information found on the three pages. Everything compiles fine, but I get a run-time error when I try to execute it.
I originally compiled the code for a simple Doc/View based application and it worked fine. I didn't like the way it looked so I tried to use a property sheet based GUI for aesthetics.
Does anyone know if the DoDataExchange function for CPropertyPage class is any different than the CRecordView class? In both cases I use the following to exchange data between the database and the property page's edit boxes:
Thanks in advance
I have created a dialog that has three tabbed property pages. Each one contains text boxes for entering different types of data for an employee. Each employee has a single database entry (1 row) that lists all the information found on the three pages. Everything compiles fine, but I get a run-time error when I try to execute it.
I originally compiled the code for a simple Doc/View based application and it worked fine. I didn't like the way it looked so I tried to use a property sheet based GUI for aesthetics.
Does anyone know if the DoDataExchange function for CPropertyPage class is any different than the CRecordView class? In both cases I use the following to exchange data between the database and the property page's edit boxes:
Code:
void CPersonalData::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPersonalData)
DDX_FieldText(pDX, IDC_TITLE, m_pSet->m_TITLE, m_pSet);
//}}AFX_DATA_MAP
}
Thanks in advance