Solved

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

Posted on 1998-08-25
1
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

738 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