資源簡介
VC實現
功能:
在指定目錄下的所有文件中,搜索 查找提定的多個字符串
可以創建指定個數的線程,最多30個,并支持設置各個線程的優先級

代碼片段和文件信息
//?CodeCounter.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CodeCounter.h“
#include?“CodeCounterDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCodeCounterApp
BEGIN_MESSAGE_MAP(CCodeCounterApp?CWinApp)
//{{AFX_MSG_MAP(CCodeCounterApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCodeCounterApp?construction
CCodeCounterApp::CCodeCounterApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCodeCounterApp?object
CCodeCounterApp?theApp;
int?nMarkNum;
int?eachcount;
/////////////////////////////////////////////////////////////////////////////
//?CCodeCounterApp?initialization
BOOL?CCodeCounterApp::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
CCodeCounterDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4389??2005-10-26?08:23??多線程代碼搜索器10\CodeCounter.dsp
?????文件??????82944??2006-11-02?08:59??多線程代碼搜索器10\CodeCounter.ncb
?????文件????????545??2005-10-26?08:23??多線程代碼搜索器10\CodeCounter.dsw
?????文件???????1379??2005-10-26?08:18??多線程代碼搜索器10\CodeCounter.h
?????文件????????256??2006-11-02?08:54??多線程代碼搜索器10\CodeCounter.plg
?????文件???????2160??2005-10-26?08:18??多線程代碼搜索器10\CodeCounter.cpp
?????文件???????4173??2005-10-22?17:45??多線程代碼搜索器10\RapidFinder.h
?????文件????????175??2005-10-26?08:23??多線程代碼搜索器10\resource.hm
?????文件????????213??2005-10-26?08:18??多線程代碼搜索器10\StdAfx.cpp
?????文件???????1054??2002-09-16?20:03??多線程代碼搜索器10\StdAfx.h
?????文件???????6953??2006-10-31?10:51??多線程代碼搜索器10\CodeCounter.vcproj
?????文件????????911??2006-10-31?10:51??多線程代碼搜索器10\CodeCounter.sln
????..A..H.?????10240??2006-11-01?10:31??多線程代碼搜索器10\CodeCounter.suo
?????文件???????2182??2006-11-01?12:57??多線程代碼搜索器10\CodeCounter.clw
?????文件????????582??2006-11-02?08:55??多線程代碼搜索器10\SearchResult.ini
?????文件??????17119??2006-11-01?17:21??多線程代碼搜索器10\CodeCounterDlg.cpp
?????文件???????2932??2006-11-01?12:53??多線程代碼搜索器10\CodeCounterDlg.h
?????文件???????1701??2006-11-01?12:56??多線程代碼搜索器10\resource.h
?????文件???????1078??2002-09-16?20:02??多線程代碼搜索器10\res\CodeCounter.ico
????..A.SH.??????9728??2005-10-26?08:29??多線程代碼搜索器10\res\Thumbs.db
?????文件????????403??2005-10-26?08:25??多線程代碼搜索器10\res\CodeCounter.rc2
?????目錄??????????0??2005-10-25?19:12??多線程代碼搜索器10\res
?????文件???????7641??2006-11-01?12:56??多線程代碼搜索器10\CodeCounter.rc
?????文件??????55808??2006-11-02?08:58??多線程代碼搜索器10\CodeCounter.opt
?????文件??????37896??2006-11-01?12:56??多線程代碼搜索器10\CodeCounter.aps
?????文件??????11062??2006-11-01?15:55??多線程代碼搜索器10\RapidFinder.cpp
?????目錄??????????0??2005-10-25?19:12??多線程代碼搜索器10
-----------?---------??----------?-----??----
???????????????263524????????????????????27
............此處省略0個文件信息
- 上一篇:SAP HR中各個工資類型的描述
- 下一篇:Xilinx_Kintex-7 封裝庫
評論
共有 條評論