title: Animated gif in Delphi XE 7 VCL
body: <p>i tried the solution suggested here in delphi 2010 and XE7</p>
  
  <p><a href="https://stackoverflow.com/questions/9573572/how-to-use-animated-gif-in-a-delphi-form/9573900#9573900">How to use Animated Gif in a delphi form</a></p>
  
  <p>both of them raise exception with the following message</p>
  
  <blockquote>
    <p>"Exception class EInvalidCast with message 'Invalid class typecast'."</p>
  </blockquote>