【VC开源代码栏目提醒】:网学会员鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“DirectShowEvent.cpp”一文,供大家参考学习
// DirectShowEvent.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "DirectShowEvent.h"
#include "DirectShowEventDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDirectShowEventApp
BEGIN_MESSAGE_MAP(CDirectShowEventApp, CWinApp)
//{{AFX_MSG_MAP(CDirectShowEventApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CDirectShowEventApp construction
CDirectShowEventApp::CDirectShowEventApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDirectShowEventApp object
CDirectShowEventApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDirectShowEventApp initialization
BOOL CDirectShowEventApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
CoInitialize(NULL);
CDirectShowEventDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
int CDirectShowEventApp::ExitInstance()
{
CoUninitialize();
return CWinApp::ExitInstance();
}
上一篇:
bjts.pas
下一篇:
网络能耗监测系统管理端的研究与实现