Article ID: 229612 - Last Review: November 23, 2006 - Revision: 4.1 SAMPLE: Mfceqado.exe Shows How to Use English Query with MFC and ADOThis article was previously published under Q229612 SUMMARY
Mfceqado.exe is an English Query ADO Visual C++ sample that uses ADO in a Visual C++ MFC application to query SQL Server statements generated by the English Query engine. The sample uses DataGrid Control version 6.0 (OLEDB) to display the results.
MORE INFORMATION
The following files are available for download from the Microsoft
Download Center: Collapse this image ![]() 119591
(http://support.microsoft.com/kb/119591/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
Description of Important FilesDbinter.cpp: English Query module to execute and display SQL languge.HistoryDlg.cpp: English Query file that implements History and Suggested Questions dialog box. ListClarifyDlg.cpp: English Query file that implements List Clarification dialog box. Mfcequi.cpp: A front-end UI for English query. MfcequiDlg.cpp: Main dialog box for a front-end UI for English Query. Nlinter.cpp: Interface to English Query Engine Object Model. ListClarifyDlg.cpp: Implements Query Window dialog box. ShowSQLDlg.cpp: Implements Show SQL dialog box. The English Query code used in this sample is very similar to the MFCUI C++ Remote Data Objects (RDO) English Query sample that ships with the SQL Server 7.0 CD-ROM. Refer to the following Microsoft Knowledge Base article for more information on how to use DataGrid Control with ADO in Visual C++: 229029
(http://support.microsoft.com/kb/229029/EN-US/
)
SAMPLE: AdoDataGrid.exe Demonstrates Using ADO with DataGrid
Steps to Run Sample
REFERENCES
For additional information on the EQ Object Model used in the sample, please search the English Query Help Online with the words "Object Model".
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: https://partner.microsoft.com/global/30000104
(https://partner.microsoft.com/global/30000104)
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS
(http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms)
APPLIES TO
| Article Translations
|

Back to the top

