Solved

Displaying animated GIF files

Posted on 1998-08-14
6
414 Views
Last Modified: 2012-05-04
Hello,
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.

Thanks
0
Comment
Question by:adnrwin
  • 3
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
Comment Utility
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
0
 

Author Comment

by:adnrwin
Comment Utility
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.
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
>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.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:adnrwin
Comment Utility
Ok but how can I embed the SHDOCVW.DLL component of Internet Explorer?
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
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.
0
 

Author Comment

by:adnrwin
Comment Utility
Thank you guys!!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now