Solved

How to play an animated gif on a dialog?

Posted on 2000-03-08
3
233 Views
Last Modified: 2010-04-10
I want to put an animated gif on a modal dialog. I'm using Vusial C++ 6.0, Windows 95/98/NT.
How can I do that?
0
Comment
Question by:daitt
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 50 total points
Comment Utility
use the MS web_browser control and then navigate to it - you can then put the .gif in your resources under the HTML section or you can keep it on the disk or even on the web
0
 
LVL 3

Author Comment

by:daitt
Comment Utility
I use Navigate method to open an HTM file on the file system. But I don't want to have extra file. How can I navigate to a resource item? How can I store the gif file under the HTML session?
0
 
LVL 9

Expert Comment

by:ShaunWilde
Comment Utility
okay add the gif to your .rc2 file - I do this because viewing gifs in VisualStudio when they are under the HTML section causes them to crash

YOUR.GIF             HTML    DISCARDABLE     "your.gif"

then you can navigate to it using

I am assuming you are using the CWebBrowser2 wrapper generated by MFC

pWebBrowser->Navigate("res://.\\yourapp.exe/your.gif");

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

728 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

10 Experts available now in Live!

Get 1:1 Help Now