Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you play AVIs from .RES files in VB4 32?

Posted on 1998-08-25
1
Medium Priority
?
162 Views
Last Modified: 2010-08-05
Could you please tell me how to play AVIs from resource files in VB4 32. Code examples would be a great help if
this is possible. Making the .res file is not a problem,
the problem I have is calling the AVI from the resource
file.


0
Comment
Question by:wingg
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 200 total points
ID: 1430873
check if this helps
create a resource file with the path to the AVI as string.
for example : id as 1, value 101, caption "c:\winnt\clock.avi"
include the resource file in to your project.
then try this code
Shell "C:\WINNT\System32\rundll32.exe C:\WINNT\System32\amovie.ocx,RunDll /play /close " & LoadResString(101), vbNormalFocus
101 is the id for the string.Replace 101 with the value for the caption which holds the path for the avi file.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

772 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