"No image handler for type 15 defined."

Vadim Zeitlin vadim at wxwindows.org
Fri May 18 06:44:57 PDT 2007


On Wed, 16 May 2007 13:22:03 GMT RN <nospam at nowaynomail.nu> wrote:

R> > R> I've added the
R> > R> wxImage::AddHandler( new wxPNGHandler);
R> > R> in ::OnInit(),
R> > R> and also tried
R> > R> wxInitAllImageHandlers();
R> > R> which makes no difference
R> >
R> >  Was the library compiled with PNG support?
R> 
R> Yes, I have
R> #define wxUSE_LIBPNG 1
R> in the setup.h file
R> 
R> Shouldn't that be enough?

 It should. I don't know what is wrong, but the error message says that it
can't find wxPNGHandler. If it's there and was added (either explicitly or
with wxInitAllImageHandlers) it should be able to find it so the only
hypothesis I have is that you somehow use a different [version of the]
library than you think you use.

 Regards,
VZ

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





More information about the wx-users mailing list