資源簡介
一個強人開發出來的多線程ScanPort,速度很快,值得學習。網上找了很多個, 最好是這 個了。
代碼片段和文件信息
//?ScanPort.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ScanPort.h“
#include?“ScanPortDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CScanPortApp
BEGIN_MESSAGE_MAP(CScanPortApp?CWinApp)
//{{AFX_MSG_MAP(CScanPortApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CScanPortApp?construction
CScanPortApp::CScanPortApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CScanPortApp?object
CScanPortApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CScanPortApp?initialization
BOOL?CScanPortApp::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
CScanPortDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3615??2004-03-24?19:44??ScanPort\ReadMe.txt
?????文件???????1078??2004-03-24?19:44??ScanPort\res\ScanPort.ico
?????文件????????400??2004-03-24?19:44??ScanPort\res\ScanPort.rc2
?????文件???????1375??2004-03-30?19:59??ScanPort\resource.h
?????文件???????1744??2004-04-04?15:29??ScanPort\ScanPort.clw
?????文件???????2091??2004-03-24?19:44??ScanPort\ScanPort.cpp
?????文件???????4196??2004-03-25?10:01??ScanPort\ScanPort.dsp
?????文件????????541??2004-03-24?19:44??ScanPort\ScanPort.dsw
?????文件???????1346??2004-03-24?19:44??ScanPort\ScanPort.h
?????文件??????69632??2004-04-04?15:29??ScanPort\ScanPort.opt
?????文件???????1051??2004-04-04?15:08??ScanPort\ScanPort.plg
?????文件???????6625??2004-03-30?21:08??ScanPort\ScanPort.rc
?????文件??????13546??2004-04-04?15:29??ScanPort\ScanPortDlg.cpp
?????文件???????2040??2004-03-30?22:29??ScanPort\ScanPortDlg.h
?????文件????????210??2004-03-24?19:44??ScanPort\StdAfx.cpp
?????文件???????1138??2004-03-24?19:45??ScanPort\StdAfx.h
?????目錄??????????0??2004-03-24?19:44??ScanPort\res
?????目錄??????????0??2008-01-13?13:31??ScanPort
-----------?---------??----------?-----??----
???????????????110628????????????????????18
評論
共有 條評論