Solved

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

Posted on 1998-08-25
1
151 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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

827 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