?
Solved

Adding an AVI to a resource file

Posted on 1998-12-07
2
Medium Priority
?
323 Views
Last Modified: 2010-04-04
 I need to add an AVI to a resource file so that I can use the TAnimate.ResID/Name etc. properties, rather than the path name.
  Is there a freeware utility available that I can use, or can I do this using the tools provided with Delphi?

  Steven.
0
Comment
Question by:StevenB
2 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 300 total points
ID: 1349693
Create a Resource file, f.ex. MYAVI.RC and add a resource of type AVI. Then compile this into a resource file (.RES) using BRCC32 (in the Bin directory) and link it into your program using the {$R} directive.

The .RC file contains this line:
1 AVI MyFile.AVI

(the syntax is ResID, ResName and resource)
0
 
LVL 4

Author Comment

by:StevenB
ID: 1349694
 Yeah, I see now. That seems to have done the trick, with a little bit of experimentation.

  Cheers for the help, Steven.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

864 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