InsertExcel.h
上传用户:haiweijt
上传日期:2018-02-23
资源大小:8195k
文件大小:1k
- #include "TNewADO.h"
- #include "TConfigA.h"
- #include "string.h"
- #include <ole2.h>
- // TMyBuffer.h: interface for the TMyBuffer class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_)
- #define AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class InsertExcel
- {
- public:
- void Insert(char* buf, int size);
- int InsertInto(char* str);
- HRESULT AutoWrap(int autoType, VARIANT *pvResult, IDispatch *pDisp, LPOLESTR ptName, int cArgs...);
- InsertExcel();
- virtual ~InsertExcel();
- char** dwStr(char *str);
- private:
- VARIANT filename;
- char m_Buffer[1024];
- int m_Offset;
- int flag;
- IDispatch *pXlBook;
- IDispatch *pXlBooks;
- IDispatch *pXlSheet;
- IDispatch *pXlApp;
- VARIANT arr;
- int m_str;
- int m_flag;
- int m_zhizhen;
- int m_zhi;
- int m_zdshu;
- int ziduan[6];
- char v_duozd[6][500];
- char v_str[420][6][200];
- };
- #endif // !defined(AFX_TMYBUFFER_H__01F3C4F5_39F6_4948_B544_A1FA4E2397A1__INCLUDED_)