ODBCDATE Sample Illustrates Working with Database Dates |
Q117316
The ODBCDATE sample illustrates working with dates using the Microsoft
Foundation Database Classes. The sample consists of a simple application
which has the ability to add, delete, edit, and query for records
containing a first name, last name, and birthday date field.
NOTE: With the release of Microsoft Visual C++ 2.0 (and later versions) the
TIMESTAMP_STRUCT used in this sample was incorporated into the MFC
architecture.
The following files are available for download from the Microsoft
Download Center:
Odbcdate.exe
For additional information about how to download Microsoft Support
files, click the article number below
to view the article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online ServicesMicrosoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.
ODBCDATE -dSee the README.TXT file included with the sample for more information about how to run it.
ADDDLG.CPP -
Implements a dialog box which allows the user to add a records to the database.
DELDLG.CPP -
Implements a dialog box which allows the user to delete records from the database.
EDITDLG.CPP -
Implements a dialog box which allows the user to edit existing records in the database.
QUERYDLG.CPP -
Implements a dialog box which allows the user to query for records in the database using any combination of first name, last name, starting date, and ending date.
RFXDATE.CPP -
Implements the RFX_Date function which works with a TIMESTAMP_STRUCT to get around the CTime limit of not being able to represent dates prior to 1970 and after 2038.
Additional query words: kbinf rfx_date timestamp ctime
Keywords : kbfile kbsample kb16bitonly kbDatabase kbMFC kbODBC kbVC
Issue type :
Technology : kbAudDeveloper kbMFC
|
Last Reviewed: May 8, 2001 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |