Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to play an animated gif on a dialog?

Posted on 2000-03-08
3
Medium Priority
?
246 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
[X]
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
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

618 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