資源簡介
本程序時(shí)基于Matrox卡的采集,采用的是MIL的采集方式,簡單實(shí)用。
設(shè)備參數(shù)要根據(jù)自己卡的型號(hào)來改變

代碼片段和文件信息
//?MCGrab.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MCGrab.h“
#include?“MCGrabDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMCGrabApp
BEGIN_MESSAGE_MAP(CMCGrabApp?CWinApp)
//{{AFX_MSG_MAP(CMCGrabApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMCGrabApp?construction
CMCGrabApp::CMCGrabApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMCGrabApp?object
CMCGrabApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMCGrabApp?initialization
BOOL?CMCGrabApp::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
CMCGrabDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????30817??2004-05-17?14:34??采集保存圖像\GrabAndSave\dcffile.dcf
?????文件?????106572??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\MCGrab.exe
?????文件?????204044??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\MCGrab.ilk
?????文件??????14343??2010-02-24?15:18??采集保存圖像\GrabAndSave\Debug\MCGrab.obj
?????文件????5651768??2010-02-24?15:18??采集保存圖像\GrabAndSave\Debug\MCGrab.pch
?????文件?????361472??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\MCGrab.pdb
?????文件???????2612??2010-02-24?15:18??采集保存圖像\GrabAndSave\Debug\MCGrab.res
?????文件??????29647??2010-02-24?15:18??采集保存圖像\GrabAndSave\Debug\MCGrabDlg.obj
?????文件???????6252??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\MilApp.obj
?????文件?????106498??2010-02-24?15:18??采集保存圖像\GrabAndSave\Debug\StdAfx.obj
?????文件?????197632??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\vc60.idb
?????文件?????364544??2010-02-24?15:21??采集保存圖像\GrabAndSave\Debug\vc60.pdb
?????文件??????21192??2007-08-13?09:41??采集保存圖像\GrabAndSave\MCGrab.aps
?????文件???????1202??2007-09-26?15:16??采集保存圖像\GrabAndSave\MCGrab.clw
?????文件???????2063??2003-11-12?12:16??采集保存圖像\GrabAndSave\MCGrab.cpp
?????文件???????4344??2006-03-10?10:53??采集保存圖像\GrabAndSave\MCGrab.dsp
?????文件????????537??2003-11-12?12:16??采集保存圖像\GrabAndSave\MCGrab.dsw
?????文件???????1324??2006-03-10?10:43??采集保存圖像\GrabAndSave\MCGrab.h
?????文件??????66560??2010-02-24?15:25??采集保存圖像\GrabAndSave\MCGrab.ncb
?????文件?????829952??2010-02-24?15:25??采集保存圖像\GrabAndSave\MCGrab.opt
?????文件????????992??2010-02-24?15:21??采集保存圖像\GrabAndSave\MCGrab.plg
?????文件????????186??2010-02-24?15:25??采集保存圖像\GrabAndSave\MCGrab.positions
?????文件???????5531??2006-07-20?15:01??采集保存圖像\GrabAndSave\MCGrab.rc
?????文件???????5313??2006-07-19?10:42??采集保存圖像\GrabAndSave\MCGrabDlg.cpp
?????文件???????1464??2006-03-10?10:45??采集保存圖像\GrabAndSave\MCGrabDlg.h
?????文件???????1804??2010-02-24?15:25??采集保存圖像\GrabAndSave\MilApp.cpp
?????文件????????644??2006-03-10?10:52??采集保存圖像\GrabAndSave\MilApp.h
?????文件??????10842??2006-07-20?15:00??采集保存圖像\GrabAndSave\RCa01620
?????文件???????3579??2003-11-12?12:16??采集保存圖像\GrabAndSave\ReadMe.txt
?????文件???????1078??2003-11-12?12:16??采集保存圖像\GrabAndSave\res\MCGrab.ico
............此處省略12個(gè)文件信息
評(píng)論
共有 條評(píng)論