A control for displaying animated gif images

Note: Reading and/or writing of GIF images requires a license to use Unisys patented Lempel Ziv Welch (LZW) data compression and decompression technology from Unisys.

GNU software states the following:

"No license or license fees are required for non-commercial, not-for-profit GIF-based applications or for non-commercial, not-for-profit GIF-freeware, so long as the LZW capability provided is only for GIF. However, a license is required if freeware is incorporated into, or sold or distributed with a commercial or for-profit product, introduced in 1995 [or later], or enhancements of products that were introduced prior to 1995."

More information can be found at Unisys.

Description:

This Component 'Gif89a'  was created with VC 5.0 and ATL.  You don't need any DLL for using this control (even atl.dll and mfc....dll). The source code is provided. This control has 7 properties and 3 methods and can be used to play any animated gif file.

Properties of the Control:

Filename - name of your GIF file.

Autosize - control will change size automatically when you load new GIF image by setting Filename property.

Autostart - control will show picture automatically when you set Filename property.

Speed - delay in 1/100 sec. If GIF itself doesn't has delay control will use this number.

Embed - when true control will store GIF file in exe module. You can use it only in dialog form when you create this form with dialog editor.

Class - when false control will paint empty space with background color of OleContainer. If true then control will not do it. Use this property only in case when you have background bitmap.

Methods of the Control:

Stop - understandable.

Start - understandable.

About - you will see a little dialog box with information about me.

Download demo project and Control - 191 KB

Download source - 30 KB



Comments

  • Can it be used to insert animated GIF into Richedit control?

    Posted by Cherubim on 07/08/2007 08:55am

    If yes can I see an example code, I am new to this and any help would be appreciated. Morever I would be happy if the same code were portable to Win32 APi implementation of the same.

    Reply
  • Compiled ActiveX?

    Posted by Legacy on 12/01/2003 12:00am

    Originally posted by: Mike Welch

    I'd like to use this component in Delphi, but I don't have C++ compiler. Can someome compile this and email it to me?

    I've been trying to track down a GIF component in Native Delphi for a month; everything I've found fails in one way or another (invalid frame count, hangs system, hammers CPU when playing, etc.). I'm just working on a freeware utility and as such don't want to spend money on a commericial library...

    Please email me at michaelw "at" techemail "dot" com (sew email address back together in case this forum strips them).

    Thanks!

    Mike
    Dallas

    Reply
  • How VC5 and VC6 run in computer

    Posted by Legacy on 11/28/2003 12:00am

    Originally posted by: Tung

    Can nhung gi de chay vc5 & vc6 trong mot computer ma vc5 khong bi bao loi khong dang ky voi he thong 
    

    Reply
  • How VC5 and VC6 run in computer

    Posted by Legacy on 11/28/2003 12:00am

    Originally posted by: Tung

    Can nhung gi de chay vc5 & vc6 trong mot computer ma vc5 khong bi bao loi khong dang ky voi he thong 
    

    Reply
  • GIF images

    Posted by Legacy on 09/11/2003 12:00am

    Originally posted by: Mallik

    i need some info on how to add gif files to windows controls. is it possible to show animated GIF images on button controls?

    Thanks and regards,
    Mallik.

    Reply
  • How to implement CallByName method in VC++(using COM dll)

    Posted by Legacy on 06/22/2003 12:00am

    Originally posted by: Ravi Kumar.Polishetty

    How to implement CallByName method which is available in VB.
    i want to implement this method in VC++ thru COM..
    bye

    Reply
  • Inserting Animated Gif Files to email

    Posted by Legacy on 06/03/2003 12:00am

    Originally posted by: Butch

    how do I insert a gif image to my email signature?

    Reply
  • Gif89a hangs on IE

    Posted by Legacy on 03/08/2003 12:00am

    Originally posted by: Affonso

    Hi ...  
    
    I'm trying to use your ActiveX to Display a GIF inside IExplorer (sounds stupid I know)
    The reason is I'm writing an ActiveX that uses TCP to communicate to another Application
    when the user click on the Control.

    I've modifyed the Gif89a Control with:

    public IObjectSafetyImpl<CGif89a, INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA>

    So I could pass the FileName with <PARAM ... >

    Bu the problem is .. if you insert, like, 10 <OBJECT ... > in you HTML and the loads it on IE ...
    sometimes when you hit the Refresh button of IE (try click sometimes fast) the Controls hang.

    I donk know if its becaus of :

    while(m_EndRun!=2); // inside Stop()

    Or somekind of synch problem with Stop being called on the destruction while the Load() (that calls Stop too) is running.

    I searched all you code trying to understand why , but I could not!

    I would realy appreciate some help here!

    Thanks,

    Affonso

    Reply
  • strcpy error...

    Posted by Legacy on 02/14/2003 12:00am

    Originally posted by: kcm

    If you have an error on strcpy(..) line, replace strcpy(..) by wcscpy(..)

    Reply
  • any help for gif animation

    Posted by Legacy on 10/15/2002 12:00am

    Originally posted by: Lorand

    I am just a rookie and I would appreciate any help
    Trying to find some code for visual basic to add gif animation to a form...

    thak you in advance

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date