資源簡介
本文檔是《VisualC++數據采集與串口通信測控應用實戰》(人民郵電出版社.田敏.鄭瑤.李江全)一書的配套源代碼。
代碼片段和文件信息
//?lx.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“lx.h“
#include?“lxDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CLxApp
BEGIN_MESSAGE_MAP(CLxApp?CWinApp)
//{{AFX_MSG_MAP(CLxApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CLxApp?construction
CLxApp::CLxApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CLxApp?object
CLxApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CLxApp?initialization
BOOL?CLxApp::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
CLxDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????3146752??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.bsc
?????文件?????106642??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.exe
?????文件?????220184??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.ilk
?????文件??????13750??2013-06-30?11:07??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.obj
?????文件????6944460??2013-06-30?11:07??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.pch
?????文件?????377856??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.pdb
?????文件???????2444??2013-06-30?11:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.res
?????文件??????????0??2013-06-30?11:07??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lx.sbr
?????文件??????27302??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lxDlg.obj
?????文件??????????0??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\lxDlg.sbr
?????文件?????106472??2013-06-30?11:07??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\StdAfx.obj
?????文件????1375220??2013-06-30?11:07??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\StdAfx.sbr
?????文件?????205824??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\vc60.idb
?????文件?????364544??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\Debug\vc60.pdb
?????文件??????21120??2013-06-30?11:35??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.aps
?????文件???????1047??2013-06-30?13:16??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.clw
?????文件???????2007??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.cpp
?????文件???????4088??2013-06-30?18:13??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.dsp
?????文件????????510??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.dsw
?????文件???????1280??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.h
?????文件??????82944??2013-06-30?18:13??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.ncb
?????文件??????49664??2013-06-30?18:13??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.opt
?????文件???????1186??2013-06-30?12:11??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.plg
?????文件???????5235??2008-01-28?23:39??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lx.rc
?????文件???????5169??2013-06-30?18:13??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lxDlg.cpp
?????文件???????1366??2008-01-28?23:32??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\lxDlg.h
?????文件???????3507??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\ReadMe.txt
?????文件???????1078??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\res\lx.ico
?????文件????????394??2008-01-26?01:06??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\res\lx.rc2
?????文件????????680??2008-01-26?01:16??01?源程序\第2章??Visual?C++?程序設計基礎\2.1??VC++工程開發步驟\resource.h
............此處省略1123個文件信息
評論
共有 條評論