资源简介
在MFC中实现的动画播放 运行程序后 可以直接播放

代码片段和文件信息
// PlayFlash.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “PlayFlash.h“
#include “PlayFlashDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPlayFlashApp
BEGIN_MESSAGE_MAP(CPlayFlashApp CWinApp)
//{{AFX_MSG_MAP(CPlayFlashApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CPlayFlashApp construction
CPlayFlashApp::CPlayFlashApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CPlayFlashApp object
CPlayFlashApp theApp;
HINSTANCE hInst;
typedef int (__stdcall * REGISTERFUNC)(void);
/////////////////////////////////////////////////////////////////////////////
// CPlayFlashApp initialization
BOOL CPlayFlashApp::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
/*注册shockwave flash object控件,控件不能放在有中文的路径下
TCHAR strCurDrt[500];
int nLen = ::GetCurrentDirectory(500strCurDrt);
if( strCurDrt[nLen]!=‘\\‘ )
{
strCurDrt[nLen++] = ‘\\‘;
strCurDrt[nLen] = ‘\0‘;
}
CString strFileName = strCurDrt;
strFileName +=“flash.ocx“;
AfxMessageBox(strFileName);
hInst = NULL;
hInst = LoadLibrary( strFileName );
if( !hInst )
{
AfxMessageBox(“加载flash.ocx失败,请检查flash.ocx是否和程序在同一目录下“);
}
else
{
REGISTERFUNC pRegister;
pRegister = GetProcAddress((HMODULE)hInst“DllRegisterServer“ );
(*pRegister)();
}
*/
CPlayFlashDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1133 2004-07-31 00:24 PlayFlash\PlayFlash.clw
文件 2795 2004-07-31 00:24 PlayFlash\PlayFlash.cpp
文件 4744 2004-07-31 00:14 PlayFlash\PlayFlash.dsp
文件 587 2004-07-30 22:20 PlayFlash\PlayFlash.dsw
文件 20480 2004-07-31 00:24 PlayFlash\PlayFlash.exe
文件 1357 2004-07-30 21:52 PlayFlash\PlayFlash.h
文件 49664 2004-07-31 00:25 PlayFlash\PlayFlash.opt
文件 418816 2004-07-31 00:22 PlayFlash\PlayFlash.pdb
文件 953 2004-07-31 00:24 PlayFlash\PlayFlash.plg
文件 6321 2004-07-30 22:52 PlayFlash\PlayFlash.rc
文件 5171 2004-07-31 00:21 PlayFlash\PlayFlashDlg.cpp
文件 1520 2004-07-30 22:53 PlayFlash\PlayFlashDlg.h
文件 3633 2004-07-30 21:52 PlayFlash\ReadMe.txt
文件 1078 2004-07-30 21:52 PlayFlash\res\PlayFlash.ico
文件 401 2004-07-30 21:52 PlayFlash\res\PlayFlash.rc2
..A.SH. 3072 2007-11-16 19:46 PlayFlash\res\Thumbs.db
文件 687 2004-07-30 22:20 PlayFlash\Resource.h
文件 14270 2004-07-30 22:03 PlayFlash\shockwaveflash.cpp
文件 4367 2004-07-30 22:03 PlayFlash\shockwaveflash.h
文件 147456 2004-07-31 00:13 PlayFlash\startup.fla
文件 17167 2004-07-30 22:56 PlayFlash\startup.swf
文件 211 2004-07-30 21:52 PlayFlash\StdAfx.cpp
文件 1054 2004-07-30 21:52 PlayFlash\StdAfx.h
目录 0 2007-11-16 20:35 PlayFlash\res
目录 0 2009-09-02 13:34 PlayFlash
文件 21388 2009-09-02 13:35 PlayFlash\PlayFlash\PlayFlash.aps
文件 1133 2009-09-02 14:27 PlayFlash\PlayFlash\PlayFlash.clw
文件 2795 2004-07-31 00:24 PlayFlash\PlayFlash\PlayFlash.cpp
文件 4744 2004-07-31 00:14 PlayFlash\PlayFlash\PlayFlash.dsp
文件 587 2004-07-30 22:20 PlayFlash\PlayFlash\PlayFlash.dsw
............此处省略32个文件信息
- 上一篇:VC++ 6.0 msdn中文版
- 下一篇:几个c++游戏源代码
相关资源
- 用单片机控制蜂鸣器播放旋律程序(
- qt媒体播放器
- QT视频播放器(基于FFmpeg)
- STM32红外检测有人开始录音,并播放录
- MFC视频播放器源码(支持avi/wma/mp3等格
- VS2013 / MFC + OpenCV 2.4.9实现视频的播放
- windows下的ffmpeg、MFC制作的播放器
- 基于DirectShow的MFC视频播放器
-
C++调用Windows MediaPla
yer实现的多媒体 - mfc mp3播放器
- C++ 双缓存机制播放音频流(PCM裸流)
- MFC+OpenGL三维建模与动画显示
- Vc++流媒体播放器源码
- C++显示GIF动画和图片
- mfc通过鼠标移动画线
- 海康威视播放器
- MFC_跑酷游戏小Demo
- 用c语言实现的MP3播放器
- C++做的具有录音及播放的语音程序
- MFC写的多媒体播放器包括录音,播放
- 用VC++实现多媒体播放器
- mfc 音乐播放器
- MFC多张位图连续动画显示程序练习
- 基于mfc vc 的flash播放器
- MFC 约瑟夫环演示程序
- 《Visual C++ OpenGL DirectX三维动画编程宝
- 海康 摄像机 SDK 通道获取 视频播放
- MFC写的音乐播放器完整版包括歌词显
- 数据结构C++语言进出堆栈动画
- MFC音乐播放器
评论
共有 条评论