error: no matching function for call to `wxImage::wxImage(wxIcon)' on WxWidget 2.8.0

Xu, Ming (NIH/NLM/NCBI) [F] mxu at ncbi.nlm.nih.gov
Mon Jul 2 14:32:39 PDT 2007


Hi,

I have the code working on wxWindows 2.4.2
wxImage CursorImage;
wxString path = wxT("./bitmaps/noentry.xbm");
CursorImage = wxImage(wxICON(noentry) );
But when I use wxWidget 2.8.0 fro compiling the code,
I got the error msg as
error: no matching function for call to `wxImage::wxImage(wxIcon)'

how can I fix the compiling error ?

thanks

ming





More information about the wx-users mailing list