資源簡介
c++ 完整讀取 excel 問價 xls 文件的源代碼!很不錯的資源!

代碼片段和文件信息
//?abcd1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“abcd1.h“
#include?“abcd1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAbcd1App
BEGIN_MESSAGE_MAP(CAbcd1App?CWinApp)
//{{AFX_MSG_MAP(CAbcd1App)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAbcd1App?construction
CAbcd1App::CAbcd1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAbcd1App?object
CAbcd1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAbcd1App?initialization
BOOL?CAbcd1App::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CAbcd1Dlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????35524??2010-05-26?20:08??VC訪問excel-2003\abcd1.aps
?????文件???????1074??2010-05-26?20:45??VC訪問excel-2003\abcd1.clw
?????文件???????2049??2009-03-27?18:42??VC訪問excel-2003\abcd1.cpp
?????文件???????4141??2009-03-27?18:42??VC訪問excel-2003\abcd1.dsp
?????文件????????535??2009-03-27?18:42??VC訪問excel-2003\abcd1.dsw
?????文件???????1313??2009-03-27?18:42??VC訪問excel-2003\abcd1.h
?????文件??????74752??2010-05-26?20:45??VC訪問excel-2003\abcd1.ncb
?????文件?????117760??2010-05-26?20:45??VC訪問excel-2003\abcd1.opt
?????文件????????942??2010-05-26?20:38??VC訪問excel-2003\abcd1.plg
?????文件???????5302??2010-05-26?20:08??VC訪問excel-2003\abcd1.rc
?????文件???????6705??2010-05-26?20:37??VC訪問excel-2003\abcd1Dlg.cpp
?????文件???????1406??2009-03-27?18:49??VC訪問excel-2003\abcd1Dlg.h
?????文件??????23224??2009-03-27?21:30??VC訪問excel-2003\C++如何讀取xls文件_百度知道.htm
?????文件???????3561??2009-03-27?18:42??VC訪問excel-2003\ReadMe.txt
?????文件????????729??2009-03-27?18:50??VC訪問excel-2003\resource.h
?????文件????????207??2009-03-27?18:42??VC訪問excel-2003\StdAfx.cpp
?????文件???????1143??2010-05-26?11:06??VC訪問excel-2003\StdAfx.h
?????文件?????343694??2010-05-26?20:20??VC訪問excel-2003\VC直接讀取EXCEl數據到數組中?-?史蒂芬的日志?-?網易博客.mht
?????文件??????54784??2010-05-26?20:35??VC訪問excel-2003\VC讀取Excel文件.doc
?????文件?????197599??2009-03-21?20:26??VC訪問excel-2003\VC++訪問Excel的應用技巧.pdf
?????文件????????319??2010-05-26?20:00??VC訪問excel-2003\重要說明.txt
?????文件???????1078??2009-03-27?18:42??VC訪問excel-2003\res\abcd1.ico
?????文件????????397??2009-03-27?18:42??VC訪問excel-2003\res\abcd1.rc2
?????文件?????114754??2010-05-26?20:37??VC訪問excel-2003\Debug\abcd1.exe
?????文件?????327236??2010-05-26?20:37??VC訪問excel-2003\Debug\abcd1.ilk
?????文件??????13216??2010-05-26?11:06??VC訪問excel-2003\Debug\abcd1.obj
?????文件????5798996??2010-05-26?11:06??VC訪問excel-2003\Debug\abcd1.pch
?????文件?????443392??2010-05-26?20:37??VC訪問excel-2003\Debug\abcd1.pdb
?????文件???????2488??2010-05-26?20:08??VC訪問excel-2003\Debug\abcd1.res
?????文件??????36346??2010-05-26?20:37??VC訪問excel-2003\Debug\abcd1Dlg.obj
............此處省略19個文件信息
評論
共有 條評論