Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB3 AVI's...

Posted on 1997-06-20
6
Medium Priority
?
405 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 120 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…
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…
Suggested Courses

636 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