資源簡介
在window下使用d3d技術(shù)實現(xiàn)視頻播放器實現(xiàn),是學(xué)習(xí)d3d以及mfc編程的好例子

代碼片段和文件信息
//?Player.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Player.h“
#include?“PlayerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPlayerApp
BEGIN_MESSAGE_MAP(CPlayerApp?CWinApp)
//{{AFX_MSG_MAP(CPlayerApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CPlayerApp?construction
CPlayerApp::CPlayerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPlayerApp?object
CPlayerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPlayerApp?initialization
BOOL?CPlayerApp::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
CPlayerDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2005-06-23?15:57??Pla
?????文件???????3579??2005-06-23?15:57??Pla
?????文件???????1324??2005-06-23?15:57??Pla
?????文件???????2063??2005-06-23?15:57??Pla
?????文件???????1054??2005-06-23?15:57??Pla
?????文件????????208??2005-06-23?15:57??Pla
?????目錄??????????0??2005-06-23?15:57??Pla
?????文件????????398??2005-06-23?15:57??Pla
?????文件???????1078??2005-06-23?15:57??Pla
?????文件????????868??2005-06-23?15:59??Pla
?????文件???????5492??2005-06-23?15:59??Pla
?????目錄??????????0??2005-06-23?16:00??Pla
?????文件???????1236??2005-05-17?12:50??Pla
?????文件???????1125??2005-06-23?14:12??Pla
?????文件????????302??2005-06-23?13:46??Pla
?????文件???????5940??2005-05-17?12:53??Pla
?????文件???????7476??2005-06-23?16:01??Pla
?????文件???????1916??2005-06-23?16:08??Pla
?????文件???????2446??2005-06-23?16:11??Pla
?????文件???????1518??2005-06-23?16:02??Pla
?????文件????????535??2005-06-23?16:05??Pla
?????文件???????5095??2005-06-23?16:22??Pla
?????文件???????4857??2005-06-23?16:24??Pla
?????文件????????246??2005-06-24?20:33??Pla
-----------?---------??----------?-----??----
????????????????48756????????????????????24
評論
共有 條評論