Microsoft KB Archive/98479

= DOC: CHKBOOK.CLW File Documents ExtraDDX Lines Incorrectly =

Article ID: 98479

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 6.1

 Microsoft Visual C++ 6.0 Professional Edition

 Microsoft Visual C++ 6.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Learning Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q98479

<div class="notice_section">

<div class="summary_section">

SUMMARY
The Microsoft Foundation Class Library Technote #26, provided with Microsoft Visual C++ version 1.0, includes the following statement:

<pre class="fixed_text">  An example of custom DDX with validation can be found in the CHKBOOK sample application. See DDX_DollarsCents in DOLLCENT.CPP for an sample implementation of a custom DDX routine and CHKBOOK.CLW for the corresponding example ExtraDDXCount and ExtraDDX1 entries in the [General Info] section of the .CLW file.

However, the ExtraDDXCount and ExtraDDX1 statements are not included in the .CLW file. To address this situation, append the following lines to the [General Info] section of the CHKBOOK.CLW file:

<pre class="fixed_text">  ExtraDDXCount=1 ExtraDDX1=E;;Cents;DWORD;0;DollarsCents;(100*dollars)+cents This documentation error was corrected in MFC for Windows, version 2.5.

<div class="moreinformation_section">

MORE INFORMATION
For more information about the ExtraDDXCount and ExtraDDX1 statements, please refer to Technote #26. Note that the ExtraDDX1 statement includes two consecutive semicolon characters to ignore the second field. The Technote does not list the contents of the second field. The Technote states the following:


 * The general format of these special entries is: ExtraDDXCount=n ; where n is the number of ExtraDDX? lines to follow ExtraDDX?= ; ; ;<initValue>;<DDX_Proc>[; <DDV_Proc>; ; ;[ ; ]] ; Where ? is a number 1-n indicating which DDX type in the list ; that is being defined.

However, the Technote also defines a <vb-keys> field that belongs between the and fields. Therefore, the true format is as follows:

<pre class="fixed_text">  ExtraDDX?= ;<vb-keys>; ; ;<initValue>;<DDX_Proc>;

[;<DDV_Proc>; ; [; ; ]]

Additional query words: 1.00 2.00 2.10 ClassWizard noupdate

Keywords: kbdlg kbdocerr kbdocfix kbsample kbwizard KB98479

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.