-
大小: 55KB文件類型: .zip金幣: 2下載: 13 次發布日期: 2021-01-10
- 語言: 其他
- 標簽: vs??c++??excel??BasicExcel??
資源簡介
BasicExcel.cpp
BasicExcel.h
ExcelFormat.cpp
ExcelFormat.h
BasicExcel.h
ExcelFormat.cpp
ExcelFormat.h
代碼片段和文件信息
#include?“ExcelFormat.h“
#ifdef?_MSC_VER
#include? //?for?alloca()
#endif
#ifdef?_WIN32
namespace?WinCompFiles
{
CompoundFile::CompoundFile()
{
_pStg?=?NULL;
}
CompoundFile::~CompoundFile()
{
Close();
}
//?Compound?File?functions
bool?CompoundFile::Create(const?wchar_t*?filename)
{
HRESULT?hr?=?StgCreateDocfile(filename?STGM_READWRITE?|?STGM_CREATE?|?STGM_SHARE_EXCLUSIVE?0?&_pStg);
return?SUCCEEDED(hr);
}
bool?CompoundFile::Open(const?wchar_t*?filename?ios_base::openmode?mode/*=ios_base::in|ios_base::out*/)
{
int?stgm_mode;
if?((mode?&?(ios_base::in?|?ios_base::out))?==?(ios_base::in?|?ios_base::out))
stgm_mode?=?STGM_READWRITE?|?STGM_SHARE_EXCLUSIVE;
else?if?(mode?&?ios_base::out)
stgm_mode?=?STGM
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????215887??2020-03-21?13:25??BasicExcel.cpp
?????文件???????66866??2020-03-21?18:17??BasicExcel.h
?????文件????????6707??2020-03-20?22:34??ExcelFormat.cpp
?????文件???????17061??2020-03-20?22:37??ExcelFormat.h
- 上一篇:基于單片機的籃球賽計時計分器
- 下一篇:靜態 個人主頁
評論
共有 條評論