Displaying animated GIF files

Posted on 1998-08-14
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 100 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.
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!


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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

740 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