?
Solved

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

Posted on 1999-12-27
9
Medium Priority
?
308 Views
Last Modified: 2013-11-20
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!
0
Comment
Question by:jason_nothing
  • 5
  • 4
9 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 2308187
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
 
LVL 23

Expert Comment

by:chensu
ID: 2312885
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
 

Author Comment

by:jason_nothing
ID: 2317455
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 23

Expert Comment

by:chensu
ID: 2317786
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
 

Author Comment

by:jason_nothing
ID: 2321711
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
 
LVL 23

Expert Comment

by:chensu
ID: 2321859
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
 

Author Comment

by:jason_nothing
ID: 2323157
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
 

Author Comment

by:jason_nothing
ID: 2340964
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
 
LVL 23

Expert Comment

by:chensu
ID: 2342301
CTime t = CTime::GetCurrentTime();
CString str = t.Format(_T("%A, %B %d, %Y"));
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

601 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