Solved

Opening an AVI/MPEG file in my application.

Posted on 2004-08-26
6
136 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
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 …
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…
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…

830 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