If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 09, 2007 1:01 am
Location: Manila,Philippines


Post by jkbagain » Thu May 17, 2007 2:00 am

can you pls help me to figure out what's wrong with this one...

wxAnimation *anime=new wxAnimation(_T("image.gif"),wxANIMATION_TYPE_GIF);

during my compilation,,,,,,error messages shown like this one:
What important in a problem is not the solution but the lessons you learned in finding the solution.

Earned some good credits
Earned some good credits
Posts: 147
Joined: Thu May 17, 2007 7:03 am
Location: 's-Hertogenbosch, Netherlands

Post by lvdlinden » Thu May 17, 2007 7:41 am

I made a minimal test, but I don't get your stated error message.

Code: Select all

#include <wx/wx.h>
#include <wx/animate.h>
#include <wx/msgdlg.h>

class MyApp : public wxApp
	bool OnInit()
		wxAnimation *anime=new wxAnimation( wxT("image.gif"),wxANIMATION_TYPE_GIF); 
		wxString loaded = anime->IsOk() ? wxT("yes") : wxT("no");
		wxMessageBox( wxT("animation loaded? ") + loaded, wxT( "test" ), wxID_OK | wxICON_INFORMATION );
		return false;
Instead I get:
anim-test.cpp: In member function

Post Reply