#pragma once #include #include "GlobalDefine.h" class CExcelMgr { public: CExcelMgr(void); ~CExcelMgr(void); void CreatDataBaseTable(CString &Path,int ColNum); void CloseDataBase(); void ExportListToExcel(CListCtrl* pList); void InsertNullItem(int n); void InsertStringVec(vector &StrVec); private: BOOL MakeSurePathExists( CString &Path,bool FilenameIncluded); BOOL GetDefaultXlsFileName(CString &Path,CString& sExcelFile); CString GetExcelDriver(); CString GetTableItemName(); private: CDatabase m_Database;//数据库 int m_ColNum;//列的数量 };