Image Display using C++

Hi, was wondering if anyone could help me with creating an askye gif in the corner of my window.

So when this set of code is triggered
if (RN < 5)
{



}

i want in this if statement for the gif to appear. I was wondering what lines of ode and what libraries would i need to install to get this working
Well it depends what kind of app do you have.
Is it on Windows or some other OS ?
Do you use a framework already?
For Windows you could use native methodes:
https://stackoverflow.com/questions/2578382/animated-image-in-win32
If you use MFC have a look here.
https://www.codeproject.com/Articles/1776/Adding-GIF-animation-using-GDI

I'm using visual studio 2017 and windows at the moment
sharda thats a course link
Since you use Windows and VS you can use MFC
Try the second link I posted above
Thanks will definitley check out, dont suppose you could help with this to?
http://www.cplusplus.com/forum/general/230271/
Topic archived. No new replies allowed.