Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-08-25
1
Medium Priority
?
159 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

721 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