資源簡介
]龔建偉,熊光明編著.Visual C++/Turbo C串口通信編程實踐(第2版)[M].北京:電子工業出版社,2007 源代碼
代碼片段和文件信息
//?SCommTest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“SCommTest.h“
#include?“SCommTestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CSCommTestApp
BEGIN_MESSAGE_MAP(CSCommTestApp?CWinApp)
//{{AFX_MSG_MAP(CSCommTestApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CSCommTestApp?construction
CSCommTestApp::CSCommTestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CSCommTestApp?object
CSCommTestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CSCommTestApp?initialization
BOOL?CSCommTestApp::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
CSCommTestDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2222??2007-06-26?13:14??PROGRAM\串口調試助手\help.htm
?????文件?????266240??2007-06-26?13:14??PROGRAM\串口調試助手\串口調試助手V2.2.exe
?????文件???????1057??2007-06-26?13:14??PROGRAM\光盤程序使用說明.txt
?????文件??????47801??2009-10-17?18:37??PROGRAM\第01章\0102\scommtest\Debug\mscomm.obj
?????文件?????118880??2009-10-17?18:37??PROGRAM\第01章\0102\scommtest\Debug\SCommTest.exe
?????文件??????15071??2009-10-17?18:29??PROGRAM\第01章\0102\scommtest\Debug\SCommTest.obj
?????文件?????312320??2009-10-17?18:29??PROGRAM\第01章\0102\scommtest\Debug\SCommTest.pdb
?????文件???????2880??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\Debug\SCommTest.res
?????文件??????37834??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\Debug\SCommTestDlg.obj
?????文件?????106082??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\Debug\StdAfx.obj
?????文件?????364544??2009-10-17?18:29??PROGRAM\第01章\0102\scommtest\Debug\vc60.pdb
?????文件???????8569??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\MSCOMM.CPP
?????文件???????3221??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\MSCOMM.H
?????文件???????3633??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\ReadMe.txt
?????文件???????1078??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\RES\SCommTest.ico
?????文件????????401??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\RES\SCommTest.rc2
?????文件????????825??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\RESOURCE.H
?????文件??????21552??2009-10-17?18:29??PROGRAM\第01章\0102\scommtest\SCommTest.aps
?????文件???????1346??2009-10-17?18:29??PROGRAM\第01章\0102\scommtest\SCommTest.clw
?????文件???????2105??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTest.cpp
?????文件???????4644??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTest.dsp
?????文件????????585??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTest.dsw
?????文件???????1357??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTest.h
?????文件?????123904??2009-10-17?18:37??PROGRAM\第01章\0102\scommtest\SCommTest.ncb
?????文件??????48640??2009-10-17?18:37??PROGRAM\第01章\0102\scommtest\SCommTest.opt
?????文件????????715??2009-10-17?18:37??PROGRAM\第01章\0102\scommtest\SCommTest.plg
?????文件???????6180??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTest.rc
?????文件???????7069??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTestDlg.cpp
?????文件???????1543??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\SCommTestDlg.h
?????文件????????211??2007-06-26?13:14??PROGRAM\第01章\0102\scommtest\StdAfx.cpp
............此處省略872個文件信息
評論
共有 條評論