开发学院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

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接