Solved

How to play an animated gif on a dialog?

Posted on 2000-03-08
3
235 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
ID: 2599363
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
ID: 2603861
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
ID: 2604341
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 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 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.

832 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