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:
wxAnimation
-
- Knows some wx things
- Posts: 29
- Joined: Wed May 09, 2007 1:01 am
- Location: Manila,Philippines
- Contact:
wxAnimation
What important in a problem is not the solution but the lessons you learned in finding the solution.
-
- Earned some good credits
- Posts: 147
- Joined: Thu May 17, 2007 7:03 am
- Location: 's-Hertogenbosch, Netherlands
I made a minimal test, but I don't get your stated error message.
Instead I get:
[quote]
anim-test.cpp: In member function
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;
}
};
IMPLEMENT_APP(MyApp)
[quote]
anim-test.cpp: In member function