資源簡介
c++ MFC 通訊錄 源代碼
void common::OnCancel()
{
// TODO: Add extra cleanup here
exit(-1);
}

代碼片段和文件信息
//?abc.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“abc.h“
#include?“abcDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAbcApp
BEGIN_MESSAGE_MAP(CAbcApp?CWinApp)
//{{AFX_MSG_MAP(CAbcApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CAbcApp?construction
CAbcApp::CAbcApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAbcApp?object
CAbcApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAbcApp?initialization
BOOL?CAbcApp::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
CAbcDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????77588??2010-12-04?17:21??源代碼\abc.aps
?????文件???????7870??2010-12-04?17:47??源代碼\abc.clw
?????文件???????2021??2010-11-24?22:28??源代碼\abc.cpp
?????文件???????6246??2010-12-04?13:14??源代碼\abc.dsp
?????文件????????512??2010-11-24?22:28??源代碼\abc.dsw
?????文件???????1291??2010-11-24?22:28??源代碼\abc.h
?????文件?????222208??2010-12-04?17:47??源代碼\abc.ncb
?????文件??????55808??2010-12-04?17:47??源代碼\abc.opt
?????文件???????1263??2010-12-04?17:44??源代碼\abc.plg
?????文件??????17436??2010-12-04?17:21??源代碼\abc.rc
?????文件????????327??2010-11-27?14:07??源代碼\abc.sln
????..A..H.??????6656??2010-11-27?14:07??源代碼\abc.suo
?????文件???????5226??2010-12-01?12:50??源代碼\abcDlg.cpp
?????文件???????1369??2010-11-24?23:59??源代碼\abcDlg.h
?????文件????????960??2010-11-27?14:20??源代碼\about.cpp
?????文件???????1200??2010-11-27?14:21??源代碼\about.h
?????文件???????1198??2010-12-01?12:56??源代碼\com.cpp
?????文件???????1175??2010-12-01?12:48??源代碼\com.h
?????文件???????3345??2010-11-30?10:22??源代碼\common.cpp
?????文件???????1354??2010-11-30?10:22??源代碼\common.h
?????文件???????3394??2010-12-02?12:40??源代碼\comu.cpp
?????文件???????1291??2010-12-01?12:58??源代碼\comu.h
?????文件?????421736??2010-12-04?17:44??源代碼\Debug\abc.ilk
?????文件??????13385??2010-11-24?23:59??源代碼\Debug\abc.obj
?????文件????5494636??2010-11-24?23:15??源代碼\Debug\abc.pch
?????文件?????582656??2010-12-04?17:44??源代碼\Debug\abc.pdb
?????文件??????37180??2010-12-04?17:21??源代碼\Debug\abc.res
?????文件??????50381??2010-12-04?13:04??源代碼\Debug\abcDlg.obj
?????文件??????10129??2010-11-27?14:21??源代碼\Debug\about.obj
?????文件??????22845??2010-12-01?12:56??源代碼\Debug\com.obj
............此處省略60個文件信息
評論
共有 條評論