[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

Displaying animated GIF files

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
adnrwin
Asked:
adnrwin
  • 3
  • 2
1 Solution
 
Answers2000Commented:
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
 
adnrwinAuthor Commented:
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
 
chensuCommented:
>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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
adnrwinAuthor Commented:
Ok but how can I embed the SHDOCVW.DLL component of Internet Explorer?
0
 
chensuCommented:
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
 
adnrwinAuthor Commented:
Thank you guys!!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now