-
大小: 4.01MB文件類型: .rar金幣: 1下載: 0 次發布日期: 2023-09-15
- 語言: C/C++
- 標簽:
資源簡介
用c++MFC編寫的USB視頻設備對圖像進行采集的程序,有相應的USB接口的代碼,可以生成運行界面及相關控件,控件可以對圖像采集進行各種設置以及錄制視頻,特別推薦!!
代碼片段和文件信息
//?Capture2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Capture2.h“
#include?“Capture2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCapture2App
BEGIN_MESSAGE_MAP(CCapture2App?CWinApp)
//{{AFX_MSG_MAP(CCapture2App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCapture2App?construction
CCapture2App::CCapture2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCapture2App?object
CCapture2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCapture2App?initialization
BOOL?CCapture2App::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
CCapture2Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36712??2010-07-23?22:38??USB視頻設備采集圖像C++程序\Capture2.aps
?????文件???????1539??2010-07-23?22:38??USB視頻設備采集圖像C++程序\Capture2.clw
?????文件???????2091??2005-04-14?14:23??USB視頻設備采集圖像C++程序\Capture2.cpp
?????文件???????4196??2007-08-17?08:30??USB視頻設備采集圖像C++程序\Capture2.dsp
?????文件????????539??2005-04-14?14:23??USB視頻設備采集圖像C++程序\Capture2.dsw
?????文件???????1346??2005-04-14?14:23??USB視頻設備采集圖像C++程序\Capture2.h
?????文件?????156672??2010-07-23?22:38??USB視頻設備采集圖像C++程序\Capture2.ncb
?????文件?????669184??2010-07-23?22:38??USB視頻設備采集圖像C++程序\Capture2.opt
?????文件????????749??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Capture2.plg
?????文件???????5835??2010-07-23?22:38??USB視頻設備采集圖像C++程序\Capture2.rc
?????文件???????6811??2007-08-17?08:30??USB視頻設備采集圖像C++程序\Capture2Dlg.cpp
?????文件???????1980??2005-06-04?14:48??USB視頻設備采集圖像C++程序\Capture2Dlg.h
?????文件????3482624??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2.bsc
?????文件?????110690??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Debug\Capture2.exe
?????文件?????199712??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Debug\Capture2.ilk
?????文件??????14278??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2.obj
?????文件????7805876??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2.pch
?????文件?????353280??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Debug\Capture2.pdb
?????文件???????2936??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Debug\Capture2.res
?????文件??????????0??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2.sbr
?????文件??????34882??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2Dlg.obj
?????文件??????????0??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\Capture2Dlg.sbr
?????文件?????129008??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\StdAfx.obj
?????文件????1532182??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\StdAfx.sbr
?????文件?????222208??2010-07-04?10:22??USB視頻設備采集圖像C++程序\Debug\vc60.idb
?????文件?????405504??2010-07-04?09:51??USB視頻設備采集圖像C++程序\Debug\vc60.pdb
?????文件???????3615??2005-04-14?14:23??USB視頻設備采集圖像C++程序\ReadMe.txt
?????文件???????1078??2005-04-14?14:23??USB視頻設備采集圖像C++程序\res\Capture2.ico
?????文件????????400??2005-04-14?14:23??USB視頻設備采集圖像C++程序\res\Capture2.rc2
????..A.SH.??????3072??2010-07-01?13:27??USB視頻設備采集圖像C++程序\res\Thumbs.db
............此處省略9個文件信息
- 上一篇:B樣條曲線的繪制
- 下一篇:圖書管理信息系統課程設計 C++ MFC
評論
共有 條評論