The information in this article applies to:
SUMMARY
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 DATE property: 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. The DdpText.exe sample extracts a Visual C++ 5.0 ActiveX control project; it contains code for overrides of DDP_Text for COleCurrency and COleDateTime. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. When you associate CURRENCY and DATE properties with edit controls on a property page, ClassWizard adds the following member variables to the COlePropertyPage derived class:
It adds the following to the DoDataExchange for the property page:
This results in a compile error because the compiler cannot find overrides
of DDP_TEXT for COleCurrency and COleDateTime.To use the code in the sample it is necessary to derive your code from CMyOlePropertyPage instead of COlePropertyPage. The project also has code for CMyOlePropertyPage. MyPropPg.h and MyPropPg.cpp have the code required to add code for DDP_Text to your project. Add these files to your project. Use ClassWizard to associate properties with controls on your property page. Now modify the property page class so that it is derived from CMyOlePropertyPage. The following steps are required:
Additional query words:
Keywords : kbcode kbfile kbole kbMFC kbVC kbVC500 kbVC600 |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |