image - Loading animated GIFs from resource file in wxWidgets -


I am trying to embed an animated GIF image into a wxWidgets C ++ program. I am able to load the image from the file and it looks like this:
  wxAnimationCtrl * a = new wxAnimationCtrl (this, wxID_ANY, wxAnimation (wxT ("image.gif"), wxANIMATION_TYPE_ANY ), WxPoint (150,0)); One-> Play ();   

But I have a GIF picture in my Resource.rc. file, so that it can be compiled into executable. How do I do this?

You can try to use or function, load memory GIF resources, then Get that function and use that input stream and pass

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -