C++ Builder 2010 & GIF Animation problem

General TRichView support forum. Please post your questions here
Post Reply
Jacek Puczynski
Posts: 27
Joined: Tue Jun 20, 2006 7:34 pm
Location: Europe

C++ Builder 2010 & GIF Animation problem

Post 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
Sergey Tkachenko
Site Admin
Posts: 17606
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Try adding
#pragma link "RVGifAnimate2007"
to other #pragma links in the main form's unit.
Jacek Puczynski
Posts: 27
Joined: Tue Jun 20, 2006 7:34 pm
Location: Europe

Post by Jacek Puczynski »

Thank you.
Good tip.

Works.... :D
Post Reply