> How do I compile an AVI file into the exe. I see that the TAnimate
> component allows me to load the AVI from a resource... So I gather I
> need a resource editor, which Delphi doesn't seem to supply... (I had a
> look at the very (very very) old Resource Workshop that came with one or
> other version of Delphi, but I can't see how to add an AVI file in there
> either...
>
Hi Colin:
I have a standard Splash Form that I use which contains a number of AVIs
while my app is loading. To make them work I use (in the FormCreate):
try
Animate1.ResHandle := HInstance;
except
end;
try
Animate2.ResHandle := HInstance;
except
end;
try
Animate3.ResHandle := HInstance;
except
end;
Animate1.ResName := 'Animate1';
Animate2.ResName := 'Animate2';
Animate3.ResName := 'Animate3';
..... and just below implementation I have:
{$R SplashAnimate.res}
Using a very old copy of Borland resource workshop, I created
SplashAnimate.res using a .rc file that contained:
Animate1 avi "c:\video\splash\pic1.avi"
Animate2 avi "c:\video\splash\pic2.avi"
Animate3 avi "c:\video\splash\pic3.avi"
That's all. Open it with resource workshop as a .rc then save it as a .res
file, and your avis are part of the .res file. Compile and link and your
AVIs should work.
Borland Resource Workshop shipped on a number of Cds...it may even be a
hangover from the old days of TurboPascal for Windows. ANY resource
complier should be able to understand this syntax.
Hope this helps.........
Trevor
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/