FILE: DDP_Text Not implemented for COleDateTime and COleCurrencyID: Q168298
|
DDP_Text functions for COleCurrency and COleDateTime are not implemented in
MFC. However code that uses these functions is added to DoDataExchange when
ClassWizard is used to associate a CURRENCY or DATE property with a control
on a property page. This results in the following compilation errors.
For CURRENCY property:
For DATE property:<filename(lineno)> : error C2665: 'DDP_Text' : none of the 9 overloads
can convert parameter 3 from type 'class COleCurrency'
You must the DDP functions for COleCurrency and COleDateTime in order to associate a control on a property page with a property of one of these types.<filename(lineno)> : error C2665: 'DDP_Text' : none of the 9 overloads
can convert parameter 3 from type 'class COleDateTime'
The following file is available for download from the Microsoft Software Library:
DdpText.exeFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online ServicesWhen you associate CURRENCY and DATE properties with edit controls on a property page, ClassWizard adds the following member variables to the COlePropertyPage derived class:
COleCurrency m_Currency;
COleDateTime m_Date;
It adds the following to the DoDataExchange for the property page:
DDP_Text(pDX, IDC_CURRENCY, m_Currency, _T("CurrencyProp") );
DDX_Text(pDX, IDC_CURRENCY, m_Currency);
DDP_Text(pDX, IDC_DATE, m_Date, _T("DateProp") );
DDX_Text(pDX, IDC_DATE, m_Date);
This results in a compile error because the compiler cannot find overrides
of DDP_TEXT for COleCurrency and COleDateTime.
#include "MyPropPg.h"
Additional query words:
Keywords : kbcode kbfile kbole kbMFC kbVC kbVC500 kbVC600
Version : 5.0
Platform : NT WINDOWS
Issue type :
Last Reviewed: July 30, 1999