I wan't to link an avi-file to an executable. My application shows a little
avi-file but i don't want to ship the executable with a separate avi-file
because everyone could change it easily. Is there a way to put it in the
resource file or something lik that?
Greetings, Jos.
/* hwAnim being a Handle to the Animate Control... */
SendMessage (hwAnim, ACM_OPEN, 0, (LPARAM) MAKEINTRESOURCE(IDR_AVI));
if you doing MFC then i imagine it would be something like:
/* m_pwndAnimate being a CAnimateCtrl pointer */
m_pwndAnimate->Open (IDR_AVI);
(i just started MFC last night....might be alittle different)
Hope i could help.
-Tony
Jos Hermans wrote in message <6gvnag$t5e$1...@news.Eindhoven.NL.net>...
WHOOOPS!! Behold, and I will tell you a mystery: Your "(or something)" won't
work here. You HAVE TO use the name "AVI" for your resource, or it won't
play. (At first I named my resource "VIDEO", and I struggled for weeks
before I realized what was wrong! MS didn't bother to document this
properly, of course...)
Just thought I'd mention it!
Bendik
--
-------------------------------------------------------
Rajesh Parikh
Microsoft Certified Solution Developer
rpa...@usa.net
-------------------------------------------------------
Take a look at:
http://www.codeguru.com/controls/avidemo.shtml
--
Best Regards,
Stefan Kuhr, software development staff Homag AG Schopfloch, Germany
AntiSpam: Please remove REMOVE_THIS from my email address to send me
mail.
Jos Hermans wrote:
> win95, vc5.0
>
> I wan't to link an avi-file to an executable. My application shows a little
> avi-file but i don't want to ship the executable with a separate avi-file
> because everyone could change it easily. Is there a way to put it in the
> resource file or something lik that?
>
Hi,You can add it to your resource if you choose "Import" in the Insert
resource dialog. If you display your avi-file using the CAnimateCtrl, its Open
function features either a filename or a resource-ID.
hope that helps,
Markus
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ MARKUS STEINLEIN | NKS GmbH _/
_/ Markus.S...@nks.tps.de | Schwadermuehlstr. 4-8 _/
_/ Fax: +49-9103-506-281 | D-90553 Cadolzburg _/
_/ Voice: +49-9103-506-218 | Germany _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>Hi,You can add it to your resource if you choose "Import" in the Insert
>resource dialog. If you display your avi-file using the CAnimateCtrl, its
Open
Yes ! you must call your resource type "AVI" ! First I call it "AVIDATA" it
not work.
So I checked the example and it rc file not have the avi in.
When I open it *.res file I show it type is "AVI",so I changed my resource
file and call it "AVI" it worked !
Situ Xinhong st...@bigfoot.com
I did it and it works fine as long as I'm using uncompressed files.
If I use compression the Open fails (although the AVI plays fine when
launched from the explorer).
What did I miss?
Helge ;-)=)
---------------------------------------
All thoughts are mine -- genuine genius
Helge-Wern...@siemens.at
---------------------------------------
>Jos Hermans wrote:
>[snip]
>> Is there a way to put it in the
>> resource file or something lik that?
>
>I did it and it works fine as long as I'm using uncompressed files.
>If I use compression the Open fails (although the AVI plays fine when
>launched from the explorer).
The animation common control doesn't like compression, or maybe it
likes only one flavor. Check the docs. If your not using the animation
common control, never mind.
>
>What did I miss?
>
>Helge ;-)=)
>
>---------------------------------------
>All thoughts are mine -- genuine genius
> Helge-Wern...@siemens.at
>---------------------------------------
Don Grasberger
(remove --- from address to e-mail)
>The animation common control doesn't like compression, or maybe it
>likes only one flavor.
Only RLE8 compression is supported, I believe. That's what I use and
it works fine.
Bob Moore [MVP]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~