資源簡介
一個利用 串口 傳輸文件的小工具,需要在兩臺PC上分別運行,兩端均可發送或接受文件。

代碼片段和文件信息
//?ComToCom.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ComToCom.h“
#include?“ComToComDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CComToComApp
BEGIN_MESSAGE_MAP(CComToComApp?CWinApp)
//{{AFX_MSG_MAP(CComToComApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CComToComApp?construction
CComToComApp::CComToComApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CComToComApp?object
CComToComApp theApp;
CDataDoc theDoc;
/////////////////////////////////////////////////////////////////////////////
//?CComToComApp?initialization
BOOL?CComToComApp::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
CComToComDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3941??2005-05-24?16:33??ComToCom\ComToCom.clw
?????文件???????2110??2004-04-29?11:14??ComToCom\ComToCom.cpp
?????文件???????1630??2004-05-18?17:36??ComToCom\ComToCom.dep
?????文件???????5911??2004-05-20?11:17??ComToCom\ComToCom.dsp
?????文件???????1395??2004-04-29?11:46??ComToCom\ComToCom.h
?????文件??????10655??2004-05-20?11:17??ComToCom\ComToCom.mak
?????文件???????3460??2004-09-04?12:07??ComToCom\ComToCom.plg
?????文件??????13531??2004-05-18?17:17??ComToCom\ComToCom.rc
?????文件????????905??2008-03-31?14:59??ComToCom\ComToCom.sln
?????文件??????12674??2008-03-31?14:59??ComToCom\ComToCom.vcproj
?????文件??????32725??2008-09-28?17:12??ComToCom\ComToComDlg.cpp
?????文件???????3235??2004-05-18?16:52??ComToCom\ComToComDlg.h
?????文件???????9120??2004-05-18?15:04??ComToCom\DataDoc.cpp
?????文件???????3283??2004-05-18?15:08??ComToCom\DataDoc.h
?????文件???????2096??2004-05-18?15:32??ComToCom\Datafr
?????文件????????937??2004-05-18?15:32??ComToCom\Datafr
?????文件???????9484??1998-03-27?08:45??ComToCom\FILECOPY.AVI
?????文件????????512??2004-05-12?16:50??ComToCom\FileInfo.cpp
?????文件????????573??2004-05-12?11:57??ComToCom\FileInfo.h
?????文件???????4467??2004-05-12?18:14??ComToCom\FileListCtrl.cpp
?????文件???????1496??2004-05-12?16:26??ComToCom\FileListCtrl.h
?????文件???????2433??2004-05-13?10:52??ComToCom\FileSelDlg.cpp
?????文件???????1552??2004-05-12?16:40??ComToCom\FileSelDlg.h
?????文件???????8833??2004-05-13?10:52??ComToCom\FileTreeCtrl.cpp
?????文件???????1793??2004-05-13?10:37??ComToCom\FileTreeCtrl.h
?????文件????????734??2004-05-08?16:17??ComToCom\fr
?????文件????????742??2004-05-18?15:13??ComToCom\fr
?????文件???????8569??2004-04-28?10:17??ComToCom\MSCOMM.CPP
?????文件???????3221??2004-04-28?10:17??ComToCom\MSCOMM.H
?????文件??????????0??2004-05-09?10:37??ComToCom\OUT.TXT
............此處省略22個文件信息
- 上一篇:基于灰度梯度共生矩陣的圖像分類
- 下一篇:CDMA2000網絡優化實習手冊
評論
共有 條評論