• 大小: 3.74MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-10
  • 语言: C/C++
  • 标签: MediaPlayer  MFC  

资源简介

利用mediaplayer创建最简单的媒体播放器,支持AVI等各种视频 利用mediaplayer播放器,须包含二十多个微软的播放器文件,其中源码文件都是空的,这些文件可以从网上下载,也可使用本例中现成的文件。 解说见博客:http://blog.csdn.net/mihang2/article/details/39964323

资源截图

代码片段和文件信息

// LicensePlayer.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LicensePlayer.h“
#include “LicensePlayerDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CLicensePlayerApp

BEGIN_MESSAGE_MAP(CLicensePlayerApp CWinApp)
    ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CLicensePlayerApp construction

CLicensePlayerApp::CLicensePlayerApp()
{
    // TODO: add construction code here
    // Place all significant initialization in InitInstance
}


// The one and only CLicensePlayerApp object

CLicensePlayerApp theApp;


// CLicensePlayerApp initialization

BOOL CLicensePlayerApp::InitInstance()
{
    // InitCommonControlsEx() is required on Windows XP if an application
    // manifest specifies use of ComCtl32.dll version 6 or later to enable
    // visual styles.  Otherwise any window creation will fail.
    INITCOMMONCONTROLSEX InitCtrls;
    InitCtrls.dwSize = sizeof(InitCtrls);
    // Set this to include all the common control classes you want to use
    // in your application.
    InitCtrls.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&InitCtrls);

    CWinApp::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
    // Change the registry key under which our settings are stored
    // TODO: You should modify this string to be something appropriate
    // such as the name of your company or organization
    SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

    CLicensePlayerDlg dlg;
    m_pMainWnd = &dlg;
    INT_PTR 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;
}

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

     文件      28305  2009-11-29 02:31  LicensePlayer\include\CMediaPlayer.h

     文件       1254  2014-10-08 10:15  LicensePlayer\include\CWMPCdromCollection.h

     文件       2013  2014-10-08 10:15  LicensePlayer\include\CWMPClosedCaption.h

     文件       3050  2014-10-08 10:15  LicensePlayer\include\CWMPClosedCaption2.h

     文件       2945  2014-10-08 10:15  LicensePlayer\include\CWMPControls.h

     文件       3109  2014-10-08 10:15  LicensePlayer\include\CWMPControls2.h

     文件       5110  2014-10-08 10:15  LicensePlayer\include\CWMPControls3.h

     文件       1323  2014-10-08 10:15  LicensePlayer\include\CWMPDVD.h

     文件       1139  2014-10-08 10:15  LicensePlayer\include\CWMPError.h

     文件       1412  2014-10-08 10:15  LicensePlayer\include\CWMPErrorItem.h

     文件       1586  2014-10-08 10:15  LicensePlayer\include\CWMPErrorItem2.h

     文件       4207  2014-10-08 10:15  LicensePlayer\include\CWMPMedia.h

     文件       4395  2014-10-08 10:15  LicensePlayer\include\CWMPMedia2.h

     文件       5000  2014-10-08 10:15  LicensePlayer\include\CWMPMedia3.h

     文件       3513  2014-10-08 10:15  LicensePlayer\include\CWMPMediaCollection.h

     文件       1282  2014-10-08 10:15  LicensePlayer\include\CWMPmetadataPicture.h

     文件        911  2014-10-08 10:15  LicensePlayer\include\CWMPmetadataText.h

     文件       5623  2014-10-08 10:15  LicensePlayer\include\CWMPPlayer.h

     文件       6342  2014-10-08 10:15  LicensePlayer\include\CWMPPlayer2.h

     文件       6520  2014-10-08 10:15  LicensePlayer\include\CWMPPlayer3.h

     文件       8258  2014-10-08 10:15  LicensePlayer\include\CWMPPlayer4.h

     文件       3284  2014-10-08 10:15  LicensePlayer\include\CWMPPlaylist.h

     文件       2144  2014-10-08 10:15  LicensePlayer\include\CWMPPlaylistCollection.h

     文件       4676  2014-10-08 10:15  LicensePlayer\include\CWMPSettings.h

     文件       5303  2014-10-08 10:15  LicensePlayer\include\CWMPSettings2.h

     文件       8358  2009-12-04 00:45  LicensePlayer\include\ocx1.h

     文件      42588  2014-10-10 15:59  LicensePlayer\LicensePlayer.aps

     文件       2301  2014-10-08 10:15  LicensePlayer\LicensePlayer.cpp

     文件        567  2014-10-08 10:15  LicensePlayer\LicensePlayer.h

     文件       7343  2014-10-10 15:59  LicensePlayer\LicensePlayer.rc

............此处省略48个文件信息

评论

共有 条评论