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

Vadim Zeitlin vadim at wxwidgets.org
Tue Jul 3 18:04:11 PDT 2007


On Mon, 2 Jul 2007 17:32:39 -0400 "Xu, Ming (NIH/NLM/NCBI) [F]" <mxu at ncbi.nlm.nih.gov> wrote:

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

 By using wxBitmap::ConvertToImage() instead of deprecated in 2.6 (and removed
in 2.8 since then) wxImage(wxBitmap) ctor. I'm pretty sure this is mentioned in
docs/changes.txt.

 BTW, what's the point in upgrading to 2.8.0 instead of 2.8.4?

 Regards,
VZ
-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/






More information about the wx-users mailing list