..FILE:CapDlg.cpp// CapDlg.cpp : implementation file//#include "stdafx.h"#include "VidCap.h"#include "CapDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CCapDlg dialogCCapDlg::CCapDlg(CWnd* pParent /*=NULL*/): CDialog(CCapDlg::IDD, pParent){m_uiFrameRate = 10;//{{AFX_DATA_INIT(CCapDlg)// NOTE: the ClassWizard will add member initialization here//}}AFX_DATA_INIT}void CCapDlg::DoDataExchange(CDataExchange* pDX){CDialog::DoDataExchange(pDX);//{{AFX_DATA_MAP(CCapDlg)// NOTE: the ClassWizard will add DDX and DDV calls here//}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCapDlg, CDialog)//{{AFX_MSG_MAP(CCapDlg)ON_WM_DESTROY()//}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCapDlg message handlersLRESULT PASCAL FrameCallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr){::AfxGetMainWnd()->PostMessage(UM_CAPTURE_FRAME, 0, (LPARA The dialog'stemplate is in VidCap.rc, which can be edited in MicrosoftVisual C++./////////////////////////////////////////////////////////////////////////////Other standard files:StdAfx.h, StdAfx.cppThese files are used to build a precompiled header (PCH) filenamed VidCap.pch and a precompiled types file named StdAfx.obj.Resource.hThis is the standard header file, which defines new resource IDs.Microsoft Visual C++ reads and updates this file./////////////////////////////////////////////////////////////////////////////Other notes:AppWizard uses "TODO:" to indicate parts of the source code youshould add to or customize.If your application uses MFC in a shared DLL, and your application isin a language other than the operating system's current language, youwill need to copy the corresponding localized resources MFC42XXX.DLLfrom the Microsoft Visual C++ CD-ROM onto the system or system32 directory,and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.For example, MFCmissed 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;}..FILE:VidCap.dsp# Microsoft Developer Studio Project File - Name="VidCap" - Package Owner=# Microsoft Developer Studio Generated Build File, Format Version 6.00# ** DO NOT EDIT **# TARGTYPE "Win32 (x86) Application" 0x0101CFG=VidCap - Win32 Debug!MESSAGE This is not a valid makefile. To build this project using NMAKE,!MESSAGE use the Export Makefile command and run!MESSAGE!MESSAGE NMAKE /f "VidCap.mak".!MESSAGE!MESSAGE You can specify a configuration when running NMAKE!MESSAGE by defining the macro CFG on the command line. For example:!MESSAGE!MESSAGE NMAKE /f "VidCap.mak" CFG="VidCap - Win32 Debug"!MESSAGE!MESSAGE Possible choices for configuration are:!MESSAGE!MESSAGE "VidCap - Win32 Release" (based on "Win32 (x86)H__014D2787_5CA1_11D3_B62C_0050048E7153__INCLUDED_)..FILE:VidCap.ncb..FILE:VidCap.opt..FILE:VidCap.plgBuild Log--------------------Configuration: VidCap - Win32 Debug--------------------Command LinesCreating command line "rc.exe /l 0x412 /fo"Debug/VidCap.res" /d "_DEBUG" /d "_AFXDLL" "C:Documents and SettingsAdministrator바탕 화면VidCapStep01VidCap.rc""Creating temporary file "C:DOCUME~1ADMINI~1LOCALS~1TempRSPAF.tmp" with contents[/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"Debug/VidCap.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c"C:Documents and SettingsAdministrator바탕 화면VidCapStep01CapDlg.cpp""C:Documents and SettingsAdministrator바탕 화면VidCapStep01VidCap.cpp""C:Documents and SettingsAdministrator바탕 화면VidCapStep01VidCapDlg.cpp"]Creating command line "cl.exe @C:DOCUME~1ADMINI~1LOCALS~1TempRSPAF.tmp"Creating temporary file "C:DOCUME~1ADMINI~1LOCALS~1TempRSPB0.tmp" with contents[/nologo /MDd /W3 idCap.rc2" // non-Microsoft Visual C++ edited resources#include "l.korafxres.rc" // Standard components#endif/////////////////////////////////////////////////////////////////////////////#endif // not APSTUDIO_INVOKED..FILE:VidCapDlg.cpp// VidCapDlg.cpp : implementation file//#include "stdafx.h"#include "VidCap.h"#include "VidCapDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CVidCapDlg dialogCVidCapDlg::CVidCapDlg(CWnd* pParent /*=NULL*/): CDialog(CVidCapDlg::IDD, pParent){m_pCapDlg = NULL;//{{AFX_DATA_INIT(CVidCapDlg)m_uiRate = 0;m_uiCurFrame = 0;//}}AFX_DATA_INIT// Note that LoadIcon does not require a subsequent DestroyIcon in Win32m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);}void CVidCapDlg::DoDataExchange(CDataExchange* pDX){CDialog::DoDataExchange(pDX);//{{AFX_DATA_MAP(CVidCapDlg)DDX_Control(pDX, IDC_BUTTON_RATE, m_btnRate);DDX_Control(pDX, IDC_BUTT/