Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows
Visual Basic > Multimedia Animation and Sound sample source codes
How to play an .AVI file using API and the MMSYSTEM.DLL.
How to play an .AVI file using API and the MMSYSTEM.DLL. 'Note: This has only been tested with VB 3 and VB 4-16, if you convert ' Declare this API: Declare Function mciSendString& Lib "MMSYSTEM" (ByVal pstrCommand$, ByVal lpstrReturnStr As Any, ByVal wReturnLen%, ByVal CallBack%) 'Add this code to the appropriate event: Dim CmdStr$ Dim ReturnVal& ' Modify path and filename as necessary CmdStr$ = "play G:\VFW_CINE\AK1.AVI" ReturnVal& = mciSendString(CmdStr$, 0&, 0, 0&) ' To play the AVI 'fullscreen' append to CmdStr$: CmdStr$ = "play G:\VFW_CINE\AK1.AVI fullscreen"
Privacy Policy
|
Link to Us
|
Links