DOCUMENT:Q195073 13-FEB-2002 [visualc] TITLE :BUG: Error C2065: 'DDX_FieldDateTimeCtrl': Undeclared Identifier PRODUCT :Microsoft C Compiler PROD/VER::6.0 OPER/SYS: KEYWORDS:kbDatabase kbVC600bug ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, 32-bit Enterprise Edition, version 6.0 - Microsoft Visual C++.NET (2002) ------------------------------------------------------------------------------- SYMPTOMS ======== When using the Date Time Picker Control in a Microsoft Visual C++ 6.0 AppWizard (exe) Database project, you may receive the following error: Compiler Error "Error C2065: 'DDX_FieldDateTimeCtrl' : undeclared identifier" CAUSE ===== The database dialog data exchange cover routine generated by the Microsoft Visual C++ 6.0 AppWizard for exchanging data between the Date Time Picker control and the recordset member variable is DDX_FieldDateTimeCtrl( ). This function is omitted from the Visual C++ 6.0 release code. RESOLUTION ========== Replace the database dialog data exchange cover routine DDX_FieldDateTimeCtrl( ) with the AFXAPI DDX_DateTimeCtrl( ). Remove the fourth parameter in the DDX_DateTimeCtrl() call. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a table with a Date/Time field. 2. Create a Data Source to access the table. 3. In Visual C++ 6.0, create an MFC AppWizard(exe) project to access the table created in step 1 using the DSN created in step 2. 4. Add a Data Time Picker Control to the dialog box and associate it with the Date/Time field in the table. 5. Compile the project. RESULTS: This generates the following compiler error: error C2065: 'DDX_FieldDateTimeCtrl' : undeclared identifier Additional query words: msvc ====================================================================== Keywords : kbDatabase kbVC600bug Technology : kbVCsearch kbAudDeveloper kbVC600 kbVC32bitSearch Version : :6.0 Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2002.