Displaying animated GIF files

Posted on 1998-08-14
Medium Priority
Last Modified: 2012-05-04
How can I display animated GIF files in a Win95 application? I'm working with Microsoft Visual C++ 5.0. I'm able to display a GIF file, but it's not animated.

Question by:adnrwin
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
  • 3
  • 2

Accepted Solution

Answers2000 earned 300 total points
ID: 1170316
If you don't mind requiring Internet Explorer, embed the SHDOCVW.DLL (which is an OCX with a COM interface - the Web Browser control) component of Internet Explorer.  

This can do GIFs, JPEGS, HTML and a lot more (basically it's a version of the "engine" of IE that you can embed).

Insert it as you would insert an OCX into your Visual C++ project

Author Comment

ID: 1170317
How can I embed the SHDOCVW.DLL? All I want to do is to display a little animated GIF while executing caculations from another executable. It's just like when you compile a Help Project File with the Microsoft Help Workshop (you see a little animated picture but I don't know if it's a GIF file). I can't use a progress bar so that's why I want to use an animated GIF.
LVL 23

Expert Comment

ID: 1170318
>It's just like when you compile a Help Project File with the Microsoft Help Workshop (you see a little animated picture but I don't know if it's a GIF file).

That's the Windows common animation control which displays a clip in AVI format. Look into the MFC class CAnimateCtrl.

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

ID: 1170319
Ok but how can I embed the SHDOCVW.DLL component of Internet Explorer?
LVL 23

Expert Comment

ID: 1170320
Use the Components and Controls Gallery to insert the Microsoft Web Browser Control into your project. Look into the Visual C++ Programmer's Guide about ActiveX Control Containers.

Author Comment

ID: 1170321
Thank you guys!!

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

771 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