How to play an animated gif on a dialog?

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?
LVL 3
daittAsked:
Who is Participating?
 
ShaunWildeConnect With a Mentor Commented:
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
 
daittAuthor Commented:
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
 
ShaunWildeCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.