You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
637 B
C++
26 lines
637 B
C++
#pragma once
|
|
#include <afxdb.h>
|
|
#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<CString> &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;//ÁеÄÊýÁ¿
|
|
};
|
|
|