資源簡介
RS422通用串口的驅動程序,基于VC開發的,可作為通用開發代碼!

代碼片段和文件信息
//?COM_TEST.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“COM_TEST.h“
#include?“COM_TESTDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCOM_TESTApp
BEGIN_MESSAGE_MAP(CCOM_TESTApp?CWinApp)
????//{{AFX_MSG_MAP(CCOM_TESTApp)
????????//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCOM_TESTApp?construction
CCOM_TESTApp::CCOM_TESTApp()
{
????//?TODO:?add?construction?code?here
????//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCOM_TESTApp?object
CCOM_TESTApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCOM_TESTApp?initialization
BOOL?CCOM_TESTApp::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
????CCOM_TESTDlg?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??2012-07-24?18:56??VC?Test\Debug
?????文件???????1078??2012-07-23?16:35??VC?Test\res\COM_TEST.ico
?????文件????????400??2012-07-23?16:35??VC?Test\res\COM_TEST.rc2
?????目錄??????????0??2012-07-24?18:56??VC?Test\res
?????文件???????1346??2012-07-23?16:35??VC?Test\COM_TEST.h
?????文件???????1710??2012-09-29?15:39??VC?Test\COM_TESTDlg.h
?????文件???????2732??2012-07-23?16:56??VC?Test\HighCom.h
?????文件???????1076??2012-07-24?10:31??VC?Test\StdAfx.h
?????文件???????2331??2012-09-29?16:17??VC?Test\COM_TEST.clw
?????文件???????1604??2012-09-29?16:17??VC?Test\COM_TEST.plg
?????文件???????1972??2012-07-23?16:56??VC?Test\HighCom.lib
?????文件??????74752??2012-09-29?16:17??VC?Test\COM_TEST.ncb
?????文件????????541??2012-07-23?16:35??VC?Test\COM_TEST.dsw
?????文件????????210??2012-07-23?16:35??VC?Test\StdAfx.cpp
?????文件???????3615??2012-07-23?16:35??VC?Test\ReadMe.txt
?????目錄??????????0??2012-07-24?19:21??VC?Test\Release
?????文件???????4228??2012-07-24?20:18??VC?Test\COM_TEST.dsp
?????文件???????2207??2012-07-27?17:08??VC?Test\COM_TEST.cpp
?????文件?????????69??2012-09-29?16:17??VC?Test\COM_TEST.bbs
?????文件??????45056??2012-07-23?16:56??VC?Test\HighCom.dll
?????文件???????1376??2012-09-29?15:39??VC?Test\resource.h
?????文件??????22908??2012-09-29?16:16??VC?Test\COM_TEST.APS
?????文件??????22397??2012-09-29?16:08??VC?Test\COM_TESTDlg.cpp
?????文件???????7436??2012-09-29?16:16??VC?Test\COM_TEST.rc
?????文件??????48640??2012-09-29?16:17??VC?Test\COM_TEST.opt
?????目錄??????????0??2012-07-24?18:55??VC?Test
-----------?---------??----------?-----??----
???????????????247684????????????????????26
- 上一篇:Excel表自動生成時間軸大事記圖.zip
- 下一篇:七段數碼管數字鐘
評論
共有 條評論