Animated Gif on VB gif89 ocx

Animated Gif on VB gif89 ocx

I need display an animated gif (i.e. http://www.infrarossi.it/image2.gif ) in a VB5 form.
I have already done it using Gif89.dll but it doesn't support stretch property.
Pratically, if I resize the picture, only form is resized, but image doesn't follow it.
How to resolve it?
Please, I can't use commercial OCX as anigif26.ocx or lavolpe.ocx anigif.ocx.
Only free soluctions.
LVL 1
www_blubattery_comAsked:
Who is Participating?
 
danaseamanConnect With a Mentor Commented:
Given the fact that Vb6 has been updated with 6 service packs over the years I am not surprised that Vb5 has issues.
I would highly recommend that you switch to Vb6 if that if possible.
0
 
danaseamanCommented:
LaVolpe Animated Image Control [26 Jan 09] is free, has stretch property, and comes with source code.
Tested with your sample http://www.infrarossi.it/image2.gif
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=68040&lngWId=1


0
 
www_blubattery_comAuthor Commented:
This is obvious. This is not my question
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.

 
www_blubattery_comAuthor Commented:
The correct replay is a little project done in VB5 or 6, vhith a resizable window, and image2.gif resized with window and continue yo be animated.
As explained: no lavolpe or ocx, but complete free solution, working really.
0
 
danaseamanCommented:
Try this. Added resize control with drag handles. ucAniGIF is bound to resize control.
ucAniGIF can load local GIF using LoadAnimatedGIF_File or from URL using LoadAnimatedGIF_Remote.
Note that there are NO Ocx dependencies because the controls(ctl) are added directly to the project.

http://www.mediafire.com/?sharekey=5e87de9b8e52c75c90a82c7bb0fad7ade04e75f6e8ebb871
0
 
www_blubattery_comAuthor Commented:
I try but page tell
"0 items found to display!"
"No files found. Upload files "
Are you sure of url?
work with vb5?
0
 
www_blubattery_comAuthor Commented:
I confirm initial specifications.
Only VB5 projects.
0
 
danaseamanCommented:
Confirmed link and downloaded Zip OK here.
Try this link http://www.mediafire.com/download.php?zwwyzltonzy 
No reason it shouldn't work on Vb5 but I cannot test here since am using Vb6.


0
 
danaseamanCommented:
You may need to modify the vbp file in notepad to load in Vb5:
http://www.vb-helper.com/vb6tovb5.htm 

0
 
www_blubattery_comAuthor Commented:
I've tried.
VB5 get an error
Method or data member not found
on line:
Private Function ManageTimers(ByVal StartTimer As Boolean, DelayMode As Boolean) As Boolean
...

   ____>error                  c_tmrOwner = UserControl.ContainerHwnd



how to compile it?

0
 
danaseamanCommented:
Downloaded Vb5CCE and found what was causing the problem in ucAniGif.
Fixed but there is flicker on Vb5 that was not present with Vb6.

http://www.mediafire.com/?ndoykzjzeuz


0
 
www_blubattery_comAuthor Commented:
I can compile but image is blank. Have to regsvr32 some files?
0
 
danaseamanCommented:
In Form_Load set ucAniGIF(0).LoadAnimatedGIF_File to location of Gif on your machine.



Private Sub Form_Load()
 
    Command2.ToolTipText = "Target URL is http://www.animation-station.com/shared/coollinks.gif"
    
    'ucAniGIF(0).LoadAnimatedGIF_Remote  "http://www.infrarossi.it/image2.gif"
    ucAniGIF(0).LoadAnimatedGIF_File "C:\Users\dseaman\Pictures\image2.gif"
    Set UserControl11.BoundControl = ucAniGIF(0)
End Sub

Open in new window

0
 
www_blubattery_comAuthor Commented:
Ok , it work (with flicker) in debug mode.
I hope that exe compiled, doesn't flickes, but I  have many compilation errors if I try to generate .exe file.
0
 
danaseamanCommented:
Vb5CCE doesn't allow me to compile Exe so I can't track down the errors.
I could compile this to Vb6 OCX but you said No Ocx.  
0
 
www_blubattery_comAuthor Commented:
Excuse me, but I'm really novice about.
I can use a ocx, but have to be really free of license pending.
If you compile for me ocx, it is? In this case I can test ocx in vb5?

If yes, please make it without extra buttons. At end, I like use it in same mode as picture control, with only these properties:
- Image_filename
- width
- heigth
- top
- left
- stretch (yes/not)
- stop/start
- visible (yes/not)

so, if you compile to ocx the vb6 version (vhithout flicker) I can use it on vb5? If yes I can (every license free) use it.

regards
Anna
0
 
danaseamanCommented:
ucAniGIF compiled as Vb6 OCX (requires only msvbvm60.dll which all machines Xp and later have pre-installed).
No flicker. No license required.
Register with Regsvr32.exe or just add controls to project as ucAniGIF(0) and ucAniGIF(1).

http://www.mediafire.com/?o2z1mmwg2nd


0
 
www_blubattery_comAuthor Commented:
Sorry,
If i run your compiled exe I haven't flicker.
If I run project from VB5 or compile exe file in vb5 (http://www.geocities.com/pautasso/prjGIFViewer.zip
  ----> ucAniGIF(0).LoadAnimatedGIF_File "D:\image2.gif") flicker is present.

In any case, if you havent' t any way, I pay 500 point for your good consulence.
Regards
Anna
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.