
Displaying the current time and date in a dialog using COleDateTime
I have 2 member variables of type COleDateTime which are displayed on
a dialog box bound to an Access database.
How do I set the values such that one will display the time and one
will display the date in the dialog?
m_pSet->m_DtCreated = COleDateTime::GetCurrentTime();
m_pSet->m_TmCreated = COleDateTime::GetCurrentTime();
I can't get these to display in the dialog box. I thought that the
DoDataExchange would take care of it.
DDX_FieldText(pDX, IDC_DATE, m_pSet->m_DtCreated, m_pSet);
DDX_FieldText(pDX, IDC_TIME, m_pSet->m_TmCreated, m_pSet);
I'm using VC 5.0.
How do I set m_pSet->m_DtCreated and m_pSet->m_TmCreated so they will
display on the dialog?