Article ID: 141717
Article Last Modified on 6/1/2005
QUERYDEF.CPP, .H -- functions to create and use queries TABLEDEF.CPP, .H -- functions to create and use tables FIELD.CPP, .H -- functions to create and use fields INDEX.CPP, .H -- functions to create and use indexes DATABASE.CPP, .H -- functions to create and use databasesTo use this code and the MFC DAO classes, you must have Visual C++ 4.0 or later.
m_FI.m_bAllowZeroLength = TRUE;with this line:
m_FI.m_bAllowZeroLength = FALSE;This change will disable a workaround that was necessary to avoid a bug in Visual C++ 4.0. In the download files (DAOTBL.EXE), the workaround code is conditionally compiled depending on which version you are using to build the sample. If you do not make the correction given in this section and you run the application using the Visual C++ 4.1 DLLs, the following exception will be thrown when you try to create nontext fields:
119591 How to obtain Microsoft support files from online services
ADDQYDLG.CPP - USER INTERFACE - query definition dialog ADDQYDLG.H DAOTABLE.CPP - APPLICATION - main application objects DAOTABLE.H DAOTDLG.CPP - USER INTERFACE - main dialog DAOTDLG.H DATABASE.CPP - MFC DAO - database specific functions DATABASE.H ADDIXDLG.CPP - USER INTERFACE - add indexes dialog ADDIXDLG.H ADDTBDLG.CPP - USER INTERFACE - table definition dialog ADDTBDLG.H FIELD.CPP - MFC DAO - field specific functions FIELD.H LISTCTRL.CPP - USER INTERFACE - derived CListCtrl class LISTCTRL.H INDEX.CPP - MFC DAO - index specific functions INDEX.H QUERYDEF.CPP - MFC DAO - querydef specific functions QUERYDEF.H TABLEDEF.CPP - MFC DAO - tabledef specific functions TABLEDEF.H ADDDBDLG.CPP - USER INTERFACE - database definition dialog ADDDBDLG.H
Keywords: kbdownload kbdatabase kbfile kbsample kbcode kbusage KB141717