Solved

Opening an AVI/MPEG file in my application.

Posted on 2004-08-26
6
133 Views
Last Modified: 2010-05-02
Dear Experts,

I am programming in eVB3 and would like my application to open an avi or mpeg file, anuyone have any ideas on how to do this in eVB3 or will i have to use another programming language.  My application is on a PDA.

Regards,

Munzi
0
Comment
Question by:munzi79
6 Comments
 
LVL 10

Expert Comment

by:anv
ID: 11901298
i f u can use the windows media player component in your application ...
that will solve your problem
try it!!!
0
 

Author Comment

by:munzi79
ID: 11901428
anv,
How do i use the windows media player in eVB3?

0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 12469246
Munzi,
Have you tried ShellExecute API?

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()
Call ShellExecute(hwnd, "Open", ("C:\Myfile.mpg"), "", "", 1)
End Sub
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12561012
PAQed with no points refunded (of 500) %%STAMP%%

Computer101
EE Admin
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
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…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now