Grupos de Google ya no admite nuevas publicaciones ni suscripciones de Usenet. El contenido anterior sigue siendo visible.

Linking an AVI-file

Visto 0 veces
Saltar al primer mensaje no leído

Jos Hermans

no leída,
14 abr 1998, 3:00:0014/4/98
a

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?

Greetings, Jos.

Tony

no leída,
14 abr 1998, 3:00:0014/4/98
a

yeah, you can add custom resources and it will link into the
executable. I'm assuming msvc.....
in 'Resource View' right click the header and choose 'Import', add your AVI
name typre resource type 'AVI' (or something), and give the resource an id
of
IDR_AVI (or something)...then in you code load it like:

/* 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>...

Bendik Engebretsen

no leída,
15 abr 1998, 3:00:0015/4/98
a

>in 'Resource View' right click the header and choose 'Import', add your AVI
>name typre resource type 'AVI' (or something), and give the resource an id
>of
>IDR_AVI (or something)

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


Bendik Engebretsen

no leída,
15 abr 1998, 3:00:0015/4/98
a

>in 'Resource View' right click the header and choose 'Import', add your AVI
>name typre resource type 'AVI' (or something), and give the resource an id
>of
>IDR_AVI (or something)...then in you code load it like:

Rajesh Parikh (MCSD)

no leída,
15 abr 1998, 3:00:0015/4/98
a

put it in resource

--
-------------------------------------------------------
Rajesh Parikh
Microsoft Certified Solution Developer
rpa...@usa.net
-------------------------------------------------------

Stefan Kuhr

no leída,
15 abr 1998, 3:00:0015/4/98
a

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?
>
> Greetings, Jos.

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.

Markus Steinlein

no leída,
15 abr 1998, 3:00:0015/4/98
a


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 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Rekcah

no leída,
17 abr 1998, 3:00:0017/4/98
a

>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


Helge W. Süß

no leída,
17 abr 1998, 3:00:0017/4/98
a

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).

What did I miss?

Helge ;-)=)

---------------------------------------
All thoughts are mine -- genuine genius
Helge-Wern...@siemens.at
---------------------------------------

Don Grasberger

no leída,
17 abr 1998, 3:00:0017/4/98
a

On Fri, 17 Apr 1998 12:56:32 +0200, "Helge W. Süß"
<helge-wern...@siemens.at> wrote:

>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)

Bob Moore

no leída,
17 abr 1998, 3:00:0017/4/98
a

On Fri, 17 Apr 1998 14:06:36 GMT, Don Grasberger wrote:

>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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 mensajes nuevos