Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Adding an AVI to a resource file

Posted on 1998-12-07
2
Medium Priority
?
317 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
[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
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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 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