搜索资源列表
ODBC直接读、写Excel表格文件
- 想要通过ODBC直接读、写Excel表格文件,首先,应确保ODBC中已安装有Excel表格文件的驱动"MICROSOFT EXCEL DRIVER (*.XLS)"。然后,可根据下面步骤进行: 1. 在StdAfx.h文件中加入: #include #include 2. 通过ODBC直接创建Excel文件(暂定文件名:Demo.xls) //创建并写入Excel文件 void CRWExcel::WriteToExcel() { CDatabase database; CString sDri
EXCEL-data-import-and-export
- 使用vc++MFC的ODBC类,将Excel文件当作一般的数据库表格,利用ODBC技术像访问数据库一样去读/写Excel文 件。该文结合应用实例讨论了在Vc++程序中导出/导入Excel数据的方法。 注意:此文档非本人所写-Use vc++ MFC ODBC classes, the Excel file as a database form, the same as access to the database to read/write Excel files using ODBC