Can you teach me how to use the GIF89aDemo?? And the source code with it...

I had downloaded the Gif89aDemo and the source code of it...and I don't know how to use...coz it doesn't come with a readme.txt...

Can you teach me in more details about how to use it to add animated gif file into MFC forms...thanks!
jason_nothingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
1. You may extract what you want and adapt into your code.

2. Compile it, it is an ActiveX control. Use it just like other ActiveX controls. You may take a look at the source code to see what properties and methods it has.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chensuCommented:
Please don't email me directly. It makes me confused. It is better to continue the threads here.

>I have extracted the Gif89a source code into my application, but still can't see any diferent. I am not very good in MFC, please help me.
>Actually I am doing my project now, and I really need to do this in my application.
>Okay, now I tell you where I stop, I extract the whole Gif89a source code into my project, then when I want to open the workspace, there got 2 workspaces, one is my own workspace and another is the Gif89a workspace, which one should I open?
>After I open the workspace?? And compile it rite? then what's next??

It seems that you don't get it at all. By extracting, I mean you can copy and paste the source code into your source code. You don't have to add its workspace into your workspace.

Or you can compile it and it will produce an ActiveX control (.ocx). Then you just host this control. See

ActiveX Control Containers
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/devprods/vs6/visualc/vccore/_core_activex_control_containers.htm
0
jason_nothingAuthor Commented:
Hi,
   Happy New Millennium!!!! Sorry....I think that's only one way you can help me...I send u my MFC project , can u add any of a animated GIf file to my MFC form? The first form is IDD_LATEST_FORM, add to that form....then send it to me back, izzit possible ?? please.....
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

chensuCommented:
But you can't see all the steps if I add it for you. What would you do next time you need to use an ActiveX control? And you have to register the ActiveX control when you distribute your application. I think the documentation I pointed with my previous comment has all the details. In your case, you have two other options. One is to use the WebBrowser Control.

Tutorial: Using MFC to Host a WebBrowser Control
http://msdn.microsoft.com/workshop/browser/webbrowser/tutorials/WBTutorial.asp

Another is to use the Animation Control (CAnimateCtrl) that plays an .AVI file. You don't have to redistribute it since it is a common control in Windows 9x/NT 4.0.

Using CAnimateCtrl
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/devprods/vs6/visualc/vccore/_core_using_canimatectrl.htm
0
jason_nothingAuthor Commented:
Thank you very much!!! I finally did it!!! I just did what ever you said, I went to visit the website that you recommended to me. But that is add and webbrowser, but I use the same way to add a Gif89.h, Gif89a.cpp and so on. I am very happy now!! thanks again..

One more thing, I add a jpg file into the form, but the colours look not nice. is it too many colour for my picture?? Is MFC form only support 256 colours ?? how do I add a picture that more than 256 colours??
0
chensuCommented:
I am happy to hear this good news.

Regarding the color problem, I think the control should handle it. But it won't look nice if the JPEG image has more than 256 colors and your video mode is in 256-color mode.
0
jason_nothingAuthor Commented:
Thanks you very much!!! I did it again!!! I really appreciated what you have done and teach me a lot in MFC, hope I can finish my project as soon as possible.....thanks again!
0
jason_nothingAuthor Commented:
Can you please tell me how to display the current date in  the edit box? how to get the current date and convert it into cstring?? coz I want to display the current date when I click and button on the form.
0
chensuCommented:
CTime t = CTime::GetCurrentTime();
CString str = t.Format(_T("%A, %B %d, %Y"));
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.