資源簡介
適用于初學(xué)者,vc使用vfw控制攝像頭拍照,且程序運行后5秒鐘自動拍照,已編譯好,可以直接運行,湊夠50個字

代碼片段和文件信息
//?CapVideo.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CapVideo.h“
#include?“CapVideoDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCapVideoApp
BEGIN_MESSAGE_MAP(CCapVideoApp?CWinApp)
//{{AFX_MSG_MAP(CCapVideoApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCapVideoApp?construction
CCapVideoApp::CCapVideoApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCapVideoApp?object
CCapVideoApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCapVideoApp?initialization
BOOL?CCapVideoApp::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
CCapVideoDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????35864??2012-11-08?09:25??CapVideo\CapVideo.aps
?????文件???????1163??2012-11-08?09:25??CapVideo\CapVideo.clw
?????文件???????2091??2012-11-05?09:39??CapVideo\CapVideo.cpp
?????文件???????4276??2012-11-08?09:22??CapVideo\CapVideo.dsp
?????文件????????522??2012-11-05?09:39??CapVideo\CapVideo.dsw
?????文件???????1346??2012-11-05?09:39??CapVideo\CapVideo.h
?????文件??????58368??2012-11-08?09:26??CapVideo\CapVideo.ncb
?????文件??????84992??2012-11-08?09:26??CapVideo\CapVideo.opt
?????文件????????252??2012-11-08?09:26??CapVideo\CapVideo.plg
?????文件???????5644??2012-11-08?09:25??CapVideo\CapVideo.rc
?????文件???????7882??2012-11-08?09:25??CapVideo\CapVideoDlg.cpp
?????文件???????1429??2012-11-05?14:08??CapVideo\CapVideoDlg.h
?????文件????4129792??2012-11-07?09:07??CapVideo\Debug\CapVideo.bsc
?????文件?????110646??2012-11-07?09:07??CapVideo\Debug\CapVideo.exe
?????文件?????228148??2012-11-07?09:07??CapVideo\Debug\CapVideo.ilk
?????文件??????13001??2012-11-05?14:08??CapVideo\Debug\CapVideo.obj
?????文件????7014476??2012-11-05?09:51??CapVideo\Debug\CapVideo.pch
?????文件?????394240??2012-11-07?09:07??CapVideo\Debug\CapVideo.pdb
?????文件???????2824??2012-11-05?17:27??CapVideo\Debug\CapVideo.res
?????文件??????????0??2012-11-05?14:08??CapVideo\Debug\CapVideo.sbr
?????文件??????40004??2012-11-07?09:07??CapVideo\Debug\CapVideoDlg.obj
?????文件??????????0??2012-11-07?09:07??CapVideo\Debug\CapVideoDlg.sbr
?????文件?????105581??2012-11-05?09:51??CapVideo\Debug\StdAfx.obj
?????文件????1374926??2012-11-05?09:51??CapVideo\Debug\StdAfx.sbr
?????文件?????230400??2012-11-07?09:07??CapVideo\Debug\vc60.idb
?????文件?????397312??2012-11-07?09:07??CapVideo\Debug\vc60.pdb
?????文件???????3615??2012-11-05?09:39??CapVideo\ReadMe.txt
?????文件????3826688??2012-11-08?09:25??CapVideo\Release\CapVideo.bsc
?????文件??????20480??2012-11-08?09:25??CapVideo\Release\CapVideo.exe
?????文件???????8817??2012-11-08?09:12??CapVideo\Release\CapVideo.obj
............此處省略20個文件信息
評論
共有 條評論