PRB: ClassWizard Doesn't Support Custom Foreign DDXLast reviewed: August 7, 1997Article ID: Q116017 |
1.50 1.51 1.52 | 1.00 2.00 2.10 4.00
WINDOWS | WINDOWS NTkbtool kbprb The information in this article applies to:
SYMPTOMSClassWizard does not allow custom DDX functions for foreign variables. Custom DDX functions can be implemented by the user and then used by ClassWizard in generating code for member variables. The technique for this is described in "MFC TechNote 26." If, however, you have created a custom DDX function that is intended to be used to exchange data between a control and a foreign member variable (see "foreign" in the online help), ClassWizard will not recognize that your function is intended for foreign variables, nor will it let you select your new property or type (defined in the "ExtraDDX?" line in the APPSTUDIO.INI file) in conjunction with a foreign variable.
CAUSEThis is a limitation in all versions listed above of Microsoft Visual C++.
RESOLUTIONTo work around this, manually add your custom DDX_Field* call to your CRecordView's DoDataExchange() function.
|
Additional reference words: 1.00 1.50 1.51 1.52 2.00 2.10 4.00 DDX_Proc
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |