资源简介
基于Visual C++的屏幕录像完整源代码。好难找的资源
代码片段和文件信息
// CoalitionDlg.cpp : implementation file
//
#include “stdafx.h“
#include “Kinescope.h“
#include “CoalitionDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCoalitionDlg dialog
CCoalitionDlg::CCoalitionDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCoalitionDlg::IDD pParent)
{
//{{AFX_DATA_INIT(CCoalitionDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CCoalitionDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCoalitionDlg)
DDX_Control(pDX IDC_LIST1 m_List);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCoalitionDlg CDialog)
//{{AFX_MSG_MAP(CCoalitionDlg)
ON_BN_CLICKED(IDC_BUTADD OnButadd)
ON_BN_CLICKED(IDC_BUTCOALITION OnButcoalition)
ON_BN_CLICKED(IDC_BUTDEL OnButdel)
ON_BN_CLICKED(IDC_BUTCLEAR OnButclear)
ON_BN_CLICKED(IDC_BUTUP OnButup)
ON_BN_CLICKED(IDC_BUTDOWN OnButdown)
ON_BN_CLICKED(IDC_BUTEXIT OnButexit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCoalitionDlg message handlers
void CCoalitionDlg::OnButadd()
{
// TODO: Add your control notification handler code here
if(m_List.GetCount()==10)
{
MessageBox(“一次只能合成10个文件“);
return;
}
CFileDialog dlg(TRUENULLNULLOFN_HIDEREADONLY|OFN_OVERWRITEPROMPT
“(*.avi)|*.avi| |“AfxGetMainWnd());
CString strPath;
if(dlg.DoModal() == IDOK)
{
strPath = dlg.GetPathName();
if(strPath.Right(4) != “.avi“)
strPath += “.avi“;
}
m_List.InsertString(m_List.GetCount()strPath);
}
void CCoalitionDlg::OnButcoalition()
{
// TODO: Add your control notification handler code here
CFileDialog dlg(FALSENULLNULLOFN_HIDEREADONLY|OFN_OVERWRITEPROMPT
“(*.avi)|*.avi| |“AfxGetMainWnd());
CString strPathstrText=““;
if(dlg.DoModal() == IDOK)
{
strPath = dlg.GetPathName();
if(strPath.Right(4) != “.avi“)
strPath += “.avi“;
}
PAVISTREAM ps;
PAVISTREAM pstream[20];
PAVISTREAM pComStream;
AVISTREAMINFO strhdr;
PAVIFILE pfile[20];
HRESULT hr;
int m_Start=0m_Stop=0;
PAVIFILE pfileto;
AVICOMPRESSOPTIONS pCompressOption;
AVICOMPRESSOPTIONS FAR * opts[1] = {&pCompressOption};
int nframes = 0;
AVIFileInit(); //初始化AVIFile函数库
CString m_Name;
m_List.GetText(0m_Name);
AVIFileOpen(&pfile[0]m_NameOF_READ NULL); //打开源文件
AVIFILEINFO pfinfo;
AVIFileInfo(pfile[0]&pfinfosizeof(AVIFILEINFO));
AVIFileGetStream(pfile[0] &pstream[0] streamtypeVIDEO 0 ); //获取视频流
//获取流信息
AVISTREAMINFO streaminfo;
AVIStreamInfo(pstream[0]&streaminfosizeof(AVISTREAMINFO));
PGETframe pframe; //定义帧接口对象
pframe=AVIStreamGetframeOpen(pstream[0]NULL); //在流中打开帧
m_Start = AVIStreamStart(pstream[0]); //获取流的起始帧
m_Stop = AVIStreamLength(pstream[0]); //获 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-11-01 12:41 Kinescope\
文件 7198 2008-09-19 10:04 Kinescope\CoalitionDlg.cpp
文件 1391 2008-09-08 16:11 Kinescope\CoalitionDlg.h
文件 11397 2008-09-19 10:04 Kinescope\CutDlg.cpp
文件 1693 2008-09-08 15:01 Kinescope\CutDlg.h
目录 0 2011-11-01 16:19 Kinescope\Debug\
文件 3678 2011-11-01 14:55 Kinescope\Debug\BuildLog.htm
文件 43338 2011-11-01 14:55 Kinescope\Debug\CoalitionDlg.obj
文件 9170 2011-11-01 14:55 Kinescope\Debug\CoalitionDlg.sbr
文件 52435 2011-11-01 14:55 Kinescope\Debug\CutDlg.obj
文件 12618 2011-11-01 14:55 Kinescope\Debug\CutDlg.sbr
文件 19149 2011-11-01 14:55 Kinescope\Debug\fr
文件 4504 2011-11-01 14:55 Kinescope\Debug\fr
文件 3580928 2010-11-04 10:08 Kinescope\Debug\Kinescope.bsc
文件 2650112 2011-11-01 14:55 Kinescope\Debug\Kinescope.exe
文件 18718 2011-11-01 14:55 Kinescope\Debug\Kinescope.obj
文件 2517676 2010-11-04 10:08 Kinescope\Debug\Kinescope.res
文件 6185 2011-11-01 14:55 Kinescope\Debug\Kinescope.sbr
文件 163005 2011-11-01 14:55 Kinescope\Debug\KinescopeDlg.obj
文件 54568 2011-11-01 14:55 Kinescope\Debug\KinescopeDlg.sbr
文件 929844 2011-10-31 12:50 Kinescope\Debug\mfc42d.dll
文件 798773 2011-10-31 12:51 Kinescope\Debug\mfco42d.dll
文件 401484 2011-10-31 12:50 Kinescope\Debug\msvcrtd.dll
文件 17411 2011-11-01 14:55 Kinescope\Debug\NameDlg.obj
文件 3289 2011-11-01 14:55 Kinescope\Debug\NameDlg.sbr
文件 306905 2011-11-01 14:55 Kinescope\Debug\StdAfx.obj
文件 2309663 2011-11-01 14:55 Kinescope\Debug\StdAfx.sbr
文件 222208 2010-11-14 22:40 Kinescope\Debug\vc60.idb
文件 413696 2010-11-04 10:08 Kinescope\Debug\vc60.pdb
文件 371712 2011-11-01 14:55 Kinescope\Debug\vc70.idb
文件 1085440 2011-11-01 14:55 Kinescope\Debug\vc70.pdb
............此处省略35个文件信息
- 上一篇:通讯录MFC程序,C++大作业
- 下一篇:C语言嵌入式系统编程修炼之道
相关资源
- C++获取计算机的CPU ID,硬盘序列号等
- C++头文件转delphi工具 + 源码
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
川公网安备 51152502000135号
评论
共有 条评论