Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displaying an animated GIF file in an MFC application

185 views
Skip to first unread message

Jim Nobilini

unread,
Jun 13, 1997, 3:00:00 AM6/13/97
to

Does anyone know how to display an animated GIF file in an MFC
application, or is there a better format that I should use to animate?
And if there is a better format, where can I get the tools to do so, and
how would I display this new format in an MFC app?

Thanks,

JIM

Paul Messick

unread,
Jun 13, 1997, 3:00:00 AM6/13/97
to

Herbert Peters wrote:
>If you're using *.gif files you will have to provide a
> conversion from gif to dib. If you want to sell the program you'll >have to consider that you will have to get a license (from Compuserve I >think).

Actually, Unisys will be glad to license the gif format to you, just as
they did for (to?) Compuserve. In nice round numbers, think 2% of
sales.

Paul

--

---------------------------------------------------------
Paul Messick | pa...@maxmidi.com | http://www.maxmidi.com/toolkit/
Coming in August 97--Maximum MIDI: Music Applications in C++
ISBN:1-884777-44-9 Info @ http://www.browsebooks.com/Messick/599.html

Herbert Peters

unread,
Jun 14, 1997, 3:00:00 AM6/14/97
to

You will have to write your own function for that. If you have J++, the app
wizard can automatically create an animation. But it's not using a animated
GIF file. You easliy can port the Java code to C++, even if you are not an
Java expert. If you're using *.gif files you will have to provide a

conversion from gif to dib. If you want to sell the program you'll have to
consider that you will have to get a license (from Compuserve I think).

BTW The J++ 1.1 trial version can be downloaded from Microsoft. 22
MByte..., it has no expiry date, all that is missing to the regular version
is database support.

Herbert Peters
hrpe...@ksts.seed.net.tw

Jim Nobilini <ji...@hjinc.com> 次寫入到主題 <33A1A7...@hjinc.com>...

Robert Schlabbach

unread,
Jun 14, 1997, 3:00:00 AM6/14/97
to

Paul Messick <pa...@maxmidi.com> wrote in article
<33A1F3...@maxmidi.com>...

> Herbert Peters wrote:
> >If you're using *.gif files you will have to provide a
> > conversion from gif to dib. If you want to sell the program
you'll >have to consider that you will have to get a license (from
Compuserve I >think).
>
> Actually, Unisys will be glad to license the gif format to you,
just as
> they did for (to?) Compuserve. In nice round numbers, think 2% of
> sales.

Only americans must pay. (Such silly patents don't apply anywhere in
the rest of the world)

Regards,
--
Robert Schlabbach
e-mail: rob...@powerstation.isdn.cs.TU-Berlin.DE
Technical University of Berlin, Germany


Chris Marriott

unread,
Jun 14, 1997, 3:00:00 AM6/14/97
to

In article <01bc78bc$e45cc100$08959582@powerstation>, Robert Schlabbach
<rob...@powerstation.isdn.cs.TU-Berlin.DE> writes

>Only americans must pay. (Such silly patents don't apply anywhere in
>the rest of the world)

This isn't true, Robert. The patent applies to all software sold within
the USA, not simply to Americans. If you, in Germany, write a GIF viewer
and then sell it to Amercian customers, Unisys can and WILL come after
you!

Chris

----------------------------------------------------------------
Chris Marriott, Microsoft Certified Solution Developer.
SkyMap Software, U.K. e-mail: ch...@skymap.com
Visit our web site at http://www.skymap.com

Brad Wilson

unread,
Jun 16, 1997, 3:00:00 AM6/16/97
to

> And if there is a better format, where can I get the tools to do so, and
> how would I display this new format in an MFC app?

Yes, there's a better format, it's called "AVI". You can display AVIs
through one of a half dozen methods, at least; the easiest (full featured
method) is, in my opinion, the MCIWnd set of functions. The easiest
(restricted functionality method) is the CAnimateCtrl MFC class (which
wraps the Animate Common Control).

--
Brad Wilson bradw @ pobox.com http://www.thebrads.com
Objectivist, Software Engineer (Win32, STL, MFC, and sockets spoken here)

"The welfare of the people is the highest good" - Connecticut court house
"The common good comes before the private good" - Nazi slogan


Alex Lerner

unread,
Jun 17, 1997, 3:00:00 AM6/17/97
to ji...@hjinc.com

Hi, there. Without getting into discussions of what bastards the Unisys
are, how about using an AVI file format? There are many multimedia books
out there that show you (C and C++) how to read/play the AVI.

Alex Lerner
http://home.earthlink.net/~bananasoft

0 new messages