'wxImageHandler' : base class undefined
wasifshams
wasifshams at hotmail.com
Sat Oct 28 17:07:34 PDT 2006
Hi guys....,
trying to build the project and getting following error:
'wxImageHandler' : base class undefined
I thought the problem is that I haven't added the library files... but i
have added the library files as well.... that are....
wxmsw26d_core.lib wxbase26d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib
wxzlibd.lib wxregexd.lib wxexpatd.lib winmm.lib comctl32.lib rpcrt4.lib
wsock32.lib oleacc.lib odbc32.lib
Thanks in advance for ur help... The following is the code at which i am
getting this error....
Bye...
/////////////////////////////////////////////////////////////////////////////
// Name: imagpnm.h
// Purpose: wxImage PNM handler
// Author: Sylvain Bougnoux
// RCS-ID: $Id: imagpnm.h,v 1.1 1999/12/15 22:37:51 VS Exp $
// Copyright: (c) Sylvain Bougnoux
// Licence: wxWindows licence
// Modified by: Bogdan Georgescu
// read gray pgm
/////////////////////////////////////////////////////////////////////////////
#ifndef _BG_IMAGPGM_H_
#define _BG_IMAGPGM_H_
#ifdef __GNUG__
#pragma interface "BgImagPGM.h"
#endif
#include <wx/image.h>
//-----------------------------------------------------------------------------
// bgPGMHandler
//-----------------------------------------------------------------------------
#define RED_WEIGHT 0.299
#define GREEN_WEIGHT 0.587
#define BLUE_WEIGHT 0.114
class bgPGMHandler : public wxImageHandler
{
DECLARE_DYNAMIC_CLASS(bgPGMHandler)
public:
inline bgPGMHandler()
{
m_name = "PGM file";
m_extension = "pgm";
m_type = wxBITMAP_TYPE_ANY;
m_mime = "image/pgm";
};
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool
verbose=TRUE, int index=0 );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool
verbose=TRUE );
virtual bool DoCanRead( wxInputStream& stream );
void Skip_Comment(wxInputStream &stream);
};
#endif
// _BG_IMAGPGM_H_
--
View this message in context: http://www.nabble.com/%27wxImageHandler%27-%3A-base-class-undefined-tf2532328.html#a7056185
Sent from the wxWidgets - Dev mailing list archive at Nabble.com.
More information about the wx-dev
mailing list