首页 > 学院 > 开发设计 > 正文

如何用API及MMSYSTEM.DLL播放AVI文件

2019-11-18 17:37:01
字体:
来源:转载
供稿:网友
'Author:GordonF.MacLeod
'Howtoplayan.AVIfileusingAPIandtheMMSYSTEM.DLL..
'-------------------------------------------------------------------
'Here'showtoplayan.AVIfileviaAPI
'DeclarethisAPI:

DeclareFunctionmciSendString&Lib"MMSYSTEM"(ByValpstrCommand$,
ByVallpstrReturnStrAsAny,ByValwReturnLen,ByValCallBack)

'AddthiscodetotheapPRopriateevent:

DimCmdStr$
DimReturnVal&

'Modifypathandfilenameasnecessary
CmdStr$="playG:/VFW_CINE/AK1.AVI"
ReturnVal&=mciSendString(CmdStr$,0&,0,0&)

'ToplaytheAVI'fullscreen'appendtoCmdStr$:

CmdStr$="playG:/VFW_CINE/AK1.AVIfullscreen"->


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表