Solved

VB3 AVI's...

Posted on 1997-06-20
6
400 Views
Last Modified: 2006-11-17
VB4 code does me absolutely no good. I need VB3 standard 16-bit code please...I've asked a question before regarding playing AVI's in VB3 standard (16-bit) and they responded with some good code...but it used mci.ocx, which I apparently don't have. So where can I get this file, and
if I can't get it free, do I need it? Is there another way to play an avi in a control box/image box that I can do? Also is there a way within the AVI playing code to tell it to play a file with ANY extension and treat is as an AVI? Basically if I had an avi renamed to a dll or something I need to be able to play it. Lastly...I'm attempting to do a screen saver, and I've looked at the few examples on the net and have found them to be confusing...all I really need is the proper code to load my exe (as an src)into windows control panel with a setup option.

I'll increase this to 40 points if I get a good answer.
0
Comment
Question by:ChrisK
[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
  • 2
6 Comments
 
LVL 5

Expert Comment

by:y96andha
ID: 1427513
mci.ocx is the VB4 version of mci.vbx in VB3.
0
 
LVL 1

Accepted Solution

by:
milton042297 earned 40 total points
ID: 1427514
Use the mciwndx.vbx.

Add  in your project the mciwndx.vbx, it's so easy to find, if you don't I'm will send to you.

Put the control in your form. the default control's name is MCIWND1.

Now you can load, play, stop, seek, etc...  your avi.

mciwnd1.filename="myVideo.AVI"  ' load the file

mciwnd.command="play [from n] [to m]" 'where the optionals n and m are the the interval that you want to play.

mciwnd1.command = "seek to n" where n is the position that you want to go.

mciwnd1.command = "stop" ' stop the video

mciwnd1.command ="close" 'close the video

You can use wave and mid files with this control too. Only you need is to set the filename property to the file that you want (.wav or .mid)
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1427515
Please e-mail that mciwnd vbx file to ChrisK@nukeware.com asap and I'll give it a try.  BTW, I'm assuming it allows me to play the avi in a picture box then right?
0
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!

 
LVL 1

Expert Comment

by:milton042297
ID: 1427516
Yes my friend ...
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1427517
Well, I've played around with it and I could REALLY use a text/help file on this vbx so I know how to use all it's functions.  I tried just putting mciwnd1.filename="myVideo.AVI" in my code and it doesn't recodnize the function when the vbx is there...
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1427518
Milton or someone else PLEASE give me a help file or type out ALL the commands to play an avi, loop an avi infinatly or for a set number of times, and any other cool features this vbx has that I may need to know.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

689 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