資源簡介
串口調試助手+源代碼+注釋+2個word文檔教你一步一步寫程序
非常實用,尤其對于初學者來說,步驟詳細
代碼片段和文件信息
//?commtest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“commtest.h“
#include?“commtestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCommtestApp
BEGIN_MESSAGE_MAP(CCommtestApp?CWinApp)
//{{AFX_MSG_MAP(CCommtestApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCommtestApp?construction
CCommtestApp::CCommtestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCommtestApp?object
CCommtestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCommtestApp?initialization
BOOL?CCommtestApp::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
CCommtestDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????40052??2010-03-05?14:31??新建文件夾\commtest.aps
?????文件???????2474??2009-11-21?21:40??新建文件夾\commtest.clw
?????文件???????2091??2003-08-11?09:42??新建文件夾\commtest.cpp
?????文件???????4133??2006-03-17?13:38??新建文件夾\commtest.dsp
?????文件????????539??2003-08-11?09:42??新建文件夾\commtest.dsw
?????文件???????1346??2003-08-11?09:42??新建文件夾\commtest.h
?????文件???14756864??2010-03-05?14:31??新建文件夾\commtest.ncb
?????文件??????52736??2009-11-21?22:19??新建文件夾\commtest.opt
?????文件????????250??2009-11-21?21:43??新建文件夾\commtest.plg
?????文件???????7348??2010-03-05?14:31??新建文件夾\commtest.rc
?????文件????????880??2010-03-04?21:29??新建文件夾\commtest.sln
????..A..H.?????66560??2010-03-05?14:31??新建文件夾\commtest.suo
?????文件???????7327??2010-03-04?23:25??新建文件夾\commtest.vcproj
?????文件???????1427??2010-03-05?14:31??新建文件夾\commtest.vcproj.CHINA-ACAB36F81.Administrator.user
?????文件??????25590??2010-03-05?14:31??新建文件夾\commtestDlg.cpp
?????文件???????3256??2010-03-05?14:31??新建文件夾\commtestDlg.h
?????文件???????7430??2010-03-04?23:26??新建文件夾\Debug\BuildLog.htm
?????文件????6589440??2010-03-04?23:26??新建文件夾\Debug\commtest.bsc
?????文件?????110592??2010-03-04?23:26??新建文件夾\Debug\commtest.exe
?????文件????????664??2010-03-04?21:30??新建文件夾\Debug\commtest.exe.em
?????文件????????728??2010-03-04?21:30??新建文件夾\Debug\commtest.exe.em
?????文件????????629??2010-03-04?23:26??新建文件夾\Debug\commtest.exe.intermediate.manifest
?????文件?????286400??2010-03-04?23:26??新建文件夾\Debug\commtest.ilk
?????文件??????25014??2010-03-04?21:29??新建文件夾\Debug\commtest.obj
?????文件???16515072??2010-03-04?21:29??新建文件夾\Debug\commtest.pch
?????文件????3296256??2010-03-04?23:26??新建文件夾\Debug\commtest.pdb
?????文件???????3256??2010-03-04?23:26??新建文件夾\Debug\commtest.res
?????文件??????????0??2010-03-04?21:29??新建文件夾\Debug\commtest.sbr
?????文件?????141798??2010-03-04?23:26??新建文件夾\Debug\commtestDlg.obj
?????文件??????????0??2010-03-04?23:26??新建文件夾\Debug\commtestDlg.sbr
............此處省略23個文件信息
評論
共有 條評論