WEB开发网
开发学院WEB开发综合 如何用API及MMSYSTEM.DLL播放AVI文件 阅读

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

 2006-02-27 11:54:12 来源:WEB开发网   
核心提示:'Author:GordonF.MacLeod'Howtoplayan.AVIfileusingAPIandtheMMSYSTEM.DLL..'---'Here'showtoplayan.AVIfileviaAPI'DeclarethisAPI:DeclareFuncti
'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"->

Tags:如何 API MMSYSTEM

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接