Results 1 to 24 of 24

Thread: GIF89a.dll - Used to Display a GIF

Hybrid View

  1. #1

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    GIF89a.dll - Used to Display a GIF

    I thought I'd post this .dll as It took a little time to find.

    I have successfully used it...

    USE:
    1. Unzip and copy the DLL into the Windows System Directory,
    2. Register it using Start/Run: regsvr32 C:\Windows\System\Gif89.dll
    3. Add the Component to ur project.

    Done.

    I have used it like this - it works ( I hope I have it right).. someone
    VB Code:
    1. Private Sub Form_Load()
    2.     Gif89a1.FileName = App.Path & "\Jerboa.gif"
    3. End Sub

    Credit to Mc Brain for the direction
    Attached Files Attached Files
    Last edited by Bruce Fox; Mar 25th, 2002 at 10:15 PM.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I believe there is also a Start (or Play) and Stop method for animated gifs

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    should be useful, thanx

  4. #4
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Hey thats pretty good. I had to set Embed to True, if anyone else is having an trouble with that.

    With this
    2. Register it using the Start/Run -regsvr32 C:\Windows\System\Gif89.dll
    Can I use that to register msvbvm60.dll??
    Its normally installed on a System if you use a Setup Program for your app. And what about OCX's?? I've tried to test my programs on school computers, 95 don't have msvbnm60.dll, 98 do, but they don't have some of the OCX's that I'm using.

    Also, if I want to have that on a Splash screen, that dll will be included in the Setup Program, yes?
    Don't Rate my posts.

  5. #5

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Originally posted by Pc_Madness
    Hey thats pretty good. I had to set Embed to True, if anyone else is having an trouble with that.
    Hmm, I just did it the way I posted?

  6. #6
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Yeah well, I had an filename in and when I ran it, it wasn't visible. So I just played trial and error.

    I think this thread should be kept at the top for a while. So many people ask how to add animated gifs.
    Don't Rate my posts.

  7. #7

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Originally posted by Pc_Madness
    I think this thread should be kept at the top for a while. So many people ask how to add animated gifs.
    Realisticly, If someone need the DLL, its here when they do a
    'search'

  8. #8
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Pfft

    Well if they want to search, they'll goto Planet Source Code or Vbcode.com
    Don't Rate my posts.

  9. #9
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    This is the best solution that I have come across:

    No external dependency, lightweight, guaranteed to work with all animated gifs, works with transarent background gifs and much more control:
    http://www.vbforums.com/showthread.p...660#post876660

  10. #10

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Good point Nucleus,

    I was playing with that (code) this morrning.

    I have a slight problem,

    My frames 'jump' as some of them are different dimentions.
    ie, only part of the 'Original' frame has changed, so that part has been re-drawn, and therefore my images appear to jump.

    What am I missing?
    Do I need to set Height and Width of something?

    Cheers,

  11. #11
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Originally posted by Bruce Fox
    Good point Nucleus,

    I was playing with that (code) this morrning.

    I have a slight problem,

    My frames 'jump' as some of them are different dimentions.
    ie, only part of the 'Original' frame has changed, so that part has been re-drawn, and therefore my images appear to jump.

    What am I missing?
    Do I need to set Height and Width of something?

    Cheers,
    Hiya Bruce, I am actually in Melb today, in the North Rialto tower, what can I say about the weather, trully Melbournian!

    About your animated gif, post it here and I'll take a look at it.

  12. #12
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    This thread is worthy of a *bump*
    Don't Rate my posts.

  13. #13
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Hey thats pretty good. I had to set Embed to True, if anyone else is having an trouble with that.
    Hmm..... I just added it on another project and I didn't need to set Embed to True...... weirdness.

    Is there a way of having the gif play to repeat forever?
    Don't Rate my posts.

  14. #14

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Originally posted by Nucleus

    Hiya Bruce, I am actually in Melb today, in the North Rialto tower, what can I say about the weather, trully Melbournian!

    About your animated gif, post it here and I'll take a look at it.
    Well what can I tell you.... we missed out on Summer
    How long you here till?


    Heres the zip too, would just be nice to have this as a method
    to display gifs aswell

    Regards,
    Bruce.
    Attached Files Attached Files

  15. #15
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    In Melbourne until tonight 6:30, 2 days straight of miserable weather, oh well

    Ok, I can see what you mean. I haven't come across an animation like that before. I don't think it is going to be hard to do that animation, you just need to persist the initial frame then draw the new frame over the initial one. If you could only deduce where to place each frame relative to the first, it would be easy, and you wouldn't need to play around with it until you get it perfect....

    If you have this sort of animation, and it works with Gif89, then I'd use that instead of making myself go crazy. If it failed with Gif89, then I'd go to the trouble of manually animating it.

  16. #16

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Hey Nucleus,

    I stripped out each frame using InfraView - worked well

    It would appear that the frames were redrawn at the correct
    location in the original, and may have lost that alignment in the
    conversion.

    It does work well using the Gif98 dll tho.

    I am now converting some .avi files to use with your example
    and experiment
    (using InfraView - mmmm for a viewer....... powerful!)

    Hopefully we can give u an hour or two of Sun before u go

    Cheers,
    Bruce

  17. #17
    WALDO
    Guest
    Any source for this DLL?

  18. #18
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144
    Is it possible to do this? I want to load the image into the application instead of loading it from disk drive. This way, when I compile it to an .exe, I don't have to include the image file.

    Gif89a1.FileName = Form2.Image1

    Thanks in advance,

  19. #19
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: GIF89a.dll - Used to Display a GIF

    Does anyone know how to use the speed or autosize properties in this superb dll ?
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  20. #20
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: GIF89a.dll - Used to Display a GIF

    I used my snow avatar, and the snow falls for a split second only. What do I have to do to get it the snow to repeat? I couldn't get the speed property to work, either. Maybe as it is only a few frames.

  21. #21
    Lively Member rm_03's Avatar
    Join Date
    Aug 2004
    Posts
    92

    Re: GIF89a.dll - Used to Display a GIF

    Quote Originally Posted by David.Poundall
    Does anyone know how to use the speed or autosize properties in this superb dll ?
    Try this control:
    http://pscode.com/vb/scripts/ShowCod...59884&lngWId=1

  22. #22
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: GIF89a.dll - Used to Display a GIF

    Superb link rm_3 thank you.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  23. #23
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: GIF89a.dll - Used to Display a GIF

    I am trying to buyild an OCX from the excellent code in the link that RM_03 gave vabove, but it keeps hitting me with

    "No Public User Control"

    Having not got into user controls at all yet, I havn't got a clue as to what is going off. Previously with OCX source I have just compiled and that was it. Can someone have a look with me and figure out what is missing?

    TIA
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  24. #24
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: GIF89a.dll - Used to Display a GIF

    Sorted - Class has to be set to GlobalMulituse.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width