c++读写excel示例

上传者: lhs295988029 | 上传时间: 2019-12-21 18:51:09 | 文件大小: 77KB | 文件类型: rar
// Machine generated IDispatch wrapper class(es) created with ClassWizard #include "stdafx.h" #include "excel.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // _Application properties ///////////////////////////////////////////////////////////////////////////// // _Application operations LPDISPATCH _Application::GetApplication() { LPDISPATCH result; InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } long _Application::GetCreator() { long result; InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } LPDISPATCH _Application::GetParent() { LPDISPATCH result; InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH _Application::GetActiveCell() { LPDISPATCH result; InvokeHelper(0x131, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH _Application::GetActiveChart() { LPDISPATCH result; InvokeHelper(0xb7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } CString _Application::GetActivePrinter() { CString result; InvokeHelper(0x132, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); return result; } void _Application::SetActivePrinter(LPCTSTR lpszNewValue) { static BYTE parms[] = VTS_BSTR; InvokeHelper(0x132, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, lpszNewValue); } LPDISPATCH _Application::GetActiveSheet() { LPDISPATCH result; InvokeHelper(0x133, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH _Application::GetActiveWindow() { LPDISPATCH result; InvokeHelper(0x2f7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH _Application::GetActiveWorkbook() { LPDISPATCH result; InvokeHelper(0x134, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&resu

文件下载

资源详情

[{"title":"( 21 个子文件 77KB ) c++读写excel示例","children":[{"title":"excelTest","children":[{"title":"excelTest.plg <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"excelTest.rc2 <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"excelTest.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"test.xls <span style='color:#111;'> 23.00KB </span>","children":null,"spread":false},{"title":"excel.cpp <span style='color:#111;'> 169.42KB </span>","children":null,"spread":false},{"title":"excelTest.dsw <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"excelTestDlg.h <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"excelTest.dsp <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"excelTest.aps <span style='color:#111;'> 35.03KB </span>","children":null,"spread":false},{"title":"excelTestDlg.cpp <span style='color:#111;'> 8.88KB </span>","children":null,"spread":false},{"title":"excelTest.ncb <span style='color:#111;'> 169.00KB </span>","children":null,"spread":false},{"title":"excelTest.cpp <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 825B </span>","children":null,"spread":false},{"title":"excelTest.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"excelTest.rc <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"excelTest.clw <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"excel.h <span style='color:#111;'> 45.51KB </span>","children":null,"spread":false},{"title":"excelTest.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • xqzhao :
    还可以吧 。
    2018-03-15
  • starytx :
    有一点借鉴意义
    2017-08-14
  • royjiang :
    谢谢楼主,封装的不是很全,基本够用。
    2016-07-29

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明