Solved

resource for Animation control

Posted on 1998-12-23
3
176 Views
Last Modified: 2010-05-03
Does anyone know of a resource on the internet for AVI files compatible with the Animation control shipped in VB5?
0
Comment
Question by:bear454
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1452213
0
 
LVL 1

Author Comment

by:bear454
ID: 1452214
I am trying to avoid packaging another ocx in my application.  After careful consideration I have chosen the Animation control, because anyone running win32 or better will have it.
I am looking for additional AVI media, not an alternative media player.
0
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1452215
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Public Sub PlayAVI(sFileName As String)
   ' #VBIDEUtils#************************************************************
   ' * Programmer Name  : Waty Thierry
   ' * Web Site         : www.geocities.com/ResearchTriangle/6311/
   ' * E-Mail           : waty.thierry@usa.net
   ' * Date             : 20/11/98
   ' * Time             : 09:35
   ' * Module Name      : Multimedia_Module
   ' * Module Filename  : Multimedia.bas
   ' * Procedure Name   : PlayAVI
   ' * Parameters       :
   ' *                    sFileName As String
   ' **********************************************************************
   ' * Comments         : play an AVI video file without using the Multimedia
   ' *  (MCI) Control
   ' *
   ' **********************************************************************
   
   Dim returnstring     As String
   
   returnstring = Space(127)
   
   Call mciSendString("open " & Chr$(34) & sFileName & Chr$(34) & " type avivideo alias video", returnstring, 127, 0)
   Call mciSendString("set video time format ms", returnstring, 127, 0)
   Call mciSendString("play video from 0", returnstring, 127, 0)
   
   ' *** It is important to close the video, even if the file to play has run out.
   
End Sub

Public Sub StopAVI()
   ' #VBIDEUtils#************************************************************
   ' * Programmer Name  : Waty Thierry
   ' * Web Site         : www.geocities.com/ResearchTriangle/6311/
   ' * E-Mail           : waty.thierry@usa.net
   ' * Date             : 20/11/98
   ' * Time             : 09:36
   ' * Module Name      : Multimedia_Module
   ' * Module Filename  : Multimedia.bas
   ' * Procedure Name   : StopAVI
   ' * Parameters       :
   ' **********************************************************************
   ' * Comments         : Close a played AVI
   ' *
   ' * It is important to close the video, even if the file to play has run out.
   ' *
   ' **********************************************************************
   
   Dim returnstring     As String
   
   returnstring = Space(127)
   Call mciSendString("close video", returnstring, 127, 0)
   
End Sub


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question