Solved

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

Posted on 1998-08-25
1
147 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…

762 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

12 Experts available now in Live!

Get 1:1 Help Now