Page 1 of 1

C++ Builder 2010 & GIF Animation problem

Posted: Tue Jun 01, 2010 3:04 pm
by Jacek Puczynski
Hi.
After I changed the C++ Builder and Delphi compiler to version 2010 (update 5) and TRichView to version 12.0.4 I am experiencing problems with GIF animation (the same code worked on C++ Builder 2007 previously).

I provide the example project with example GIF file xbuu.gif in http://depositfiles.com/files/o4ucntsy0
or
http://rapidshare.com/files/394059443/tesrv.zip.html

I have included both required modules:

Code: Select all

#include "RVGifAnimate2007.hpp"
#include "GifImg.hpp"

and call the image insertion process:

Code: Select all

   RichView1->Format();
   TGIFImage *tgi = new TGIFImage();
   tgi->LoadFromFile("..\\xbuu.gif");
   RichView1->AddPictureEx("test", tgi, 0, rvvaBaseline);
   RichView1->FormatTail();
   RichView1->StartAnimation();

I tried many options including reinstalling TRichView component etc. No results :cry: The images are frozen.

In the project there is the same image in TImage component that animate...

Please any help.

Jacek

Posted: Tue Jun 01, 2010 4:27 pm
by Sergey Tkachenko
Try adding
#pragma link "RVGifAnimate2007"
to other #pragma links in the main form's unit.

Posted: Tue Jun 01, 2010 5:40 pm
by Jacek Puczynski
Thank you.
Good tip.

Works.... :D