資源簡介
利用微軟的SAPI編寫簡單的文本閱讀程序(29kb)

代碼片段和文件信息
//?sapitest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“sapitest.h“
#include?“sapitestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CSapitestApp
BEGIN_MESSAGE_MAP(CSapitestApp?CWinApp)
//{{AFX_MSG_MAP(CSapitestApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CSapitestApp?construction
CSapitestApp::CSapitestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CSapitestApp?object
CSapitestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CSapitestApp?initialization
BOOL?CSapitestApp::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
CSapitestDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2002-04-18?10:08??sapitest\
?????文件????????3615??2002-04-18?10:08??sapitest\ReadMe.txt
?????目錄???????????0??2002-04-18?10:08??sapitest\res\
?????文件????????1078??2002-04-18?10:08??sapitest\res\sapitest.ico
?????文件?????????400??2002-04-18?10:08??sapitest\res\sapitest.rc2
?????文件?????????775??2002-04-18?15:29??sapitest\resource.h
?????文件???????35032??2002-04-18?15:30??sapitest\sapitest.aps
?????文件?????????867??2002-04-18?15:31??sapitest\sapitest.clw
?????文件????????2091??2002-04-18?10:08??sapitest\sapitest.cpp
?????文件????????4349??2002-04-18?10:50??sapitest\sapitest.dsp
?????文件?????????541??2002-04-18?10:08??sapitest\sapitest.dsw
?????文件????????1346??2002-04-18?10:08??sapitest\sapitest.h
?????文件???????66560??2002-04-18?15:31??sapitest\sapitest.ncb
?????文件???????49664??2002-04-18?15:31??sapitest\sapitest.opt
?????文件????????1327??2002-04-18?15:31??sapitest\sapitest.plg
?????文件????????4609??2002-04-18?15:30??sapitest\sapitest.rc
?????文件????????4366??2002-04-18?15:31??sapitest\sapitestDlg.cpp
?????文件????????1351??2002-04-18?15:30??sapitest\sapitestDlg.h
?????文件?????????210??2002-04-18?10:08??sapitest\StdAfx.cpp
?????文件????????1134??2002-04-18?10:32??sapitest\StdAfx.h
- 上一篇:OpenGL 作圖 - 圓環
- 下一篇:直接通過ODBC讀、寫Excel表格文件
評論
共有 條評論