Solved

VB3 AVI's...

Posted on 1997-06-20
6
393 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
  • 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
Technology Partners: 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
VBS file using code from 2nd file (txt or vbs) 4 47
How to Add / Edit Windows Menu 4 73
Spell Check in VB6 13 136
VB6 ListBox Question 4 55
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

740 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