• 大小: 41KB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: C/C++
  • 标签: mfc  

资源简介

可以播放.avi格式的文件还有控件的使用

代码片段和文件信息

// 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      21152  2005-06-21 07:10  AVIplayer\player.aps

     文件       1231  2005-06-21 07:13  AVIplayer\player.clw

     文件       2063  2004-05-25 20:55  AVIplayer\player.cpp

     文件       4159  2004-05-25 20:55  AVIplayer\player.dsp

     文件        535  2004-05-25 20:55  AVIplayer\player.dsw

     文件       1324  2004-05-25 20:55  AVIplayer\player.h

     文件      82944  2005-06-21 07:13  AVIplayer\player.ncb

     文件      70656  2005-06-21 07:13  AVIplayer\player.opt

     文件       1689  2005-06-21 07:12  AVIplayer\player.plg

     文件       5649  2005-05-13 07:34  AVIplayer\player.rc

     文件       5058  2005-05-22 23:25  AVIplayer\playerDlg.cpp

     文件       1438  2004-05-25 21:14  AVIplayer\playerDlg.h

     文件       3579  2004-05-25 20:55  AVIplayer\ReadMe.txt

     文件      20480  2005-06-21 07:12  AVIplayer\Release\player.exe

     文件       1078  2004-05-25 20:55  AVIplayer\res\player.ico

     文件        398  2004-05-25 20:55  AVIplayer\res\player.rc2

     文件        822  2004-05-25 21:07  AVIplayer\Resource.h

     文件        208  2004-05-25 20:55  AVIplayer\StdAfx.cpp

     文件       1054  2004-05-25 20:55  AVIplayer\StdAfx.h

     目录          0  2009-12-14 09:48  AVIplayer\Release

     目录          0  2009-12-14 09:48  AVIplayer\res

     目录          0  2009-12-14 09:48  AVIplayer

----------- ---------  ---------- -----  ----

               225517                    22


评论

共有 条评论