Re: [Harbour] for QT QTextDecodec class.

2009-06-23 Thread (WenSheng)
> Hello > > The methods below are defined as > > Static Public Members. > But, Class QObject have '::tr' method. > I am not sure will these work in real life. > But anyway these are compiled withour errors. > Probably this is the reason you are getting GPF. GPF is make by QTextCodec->toUnico

Re: [Harbour] for QT QTextDecodec class.

2009-06-23 Thread Pritpal Bedi
Hello The methods below are defined as Static Public Members. I am not sure will these work in real life. But anyway these are compiled withour errors. Probably this is the reason you are getting GPF. BTW this function is a Stattic Member of QObject class and am not sure will it work or not ?

Re: [Harbour] for QT QTextDecodec class.

2009-06-22 Thread (WenSheng)
Thank you! Title is error, it's 'QTextCodec' not 'QTextDecodec', sorry!! and modify again: hbqt_qtextcodec.cpp /**/ HB_FUNC( QT_QTEXTCODEC_CODECFORNAME ) { hb_retptr( (QTextCodec *) hbqt_par_QTextCodec( 1 )->codecForName( (const char *)hb_parcx(2)) ); } HB_FUNC( QT_QTEXTCO

Re: [Harbour] for QT QTextDecodec class.

2009-06-22 Thread Viktor Szakáts
This could also help solving the CP problems with GTQTC. Brgds, Viktor On Mon, Jun 22, 2009 at 10:21 PM, Pritpal Bedi wrote: > > Hi > > > (WenSheng) wrote: >> >>  Please add some function into: >>  hbqt_qtextcodec.cpp >> /* - */ >> HB_FUNC( QT_QTEXTCODEC_CODECFORNAME ) >> { >>

Re: [Harbour] for QT QTextDecodec class.

2009-06-22 Thread Pritpal Bedi
Hi (WenSheng) wrote: > > Please add some function into: > hbqt_qtextcodec.cpp > /* - */ > HB_FUNC( QT_QTEXTCODEC_CODECFORNAME ) > { >hb_retptr( (QTextCodec *) hbqt_par_QTextCodec( 1 )->codecForName( > (const char *)hb_parcx(2) )); > } > HB_FUNC( QT_QTEXTCODEC_SETCODECF

[Harbour] for QT QTextDecodec class.

2009-06-22 Thread (WenSheng)
Hi!! Please add some function into: hbqt_qtextcodec.cpp /* - */ HB_FUNC( QT_QTEXTCODEC_CODECFORNAME ) { hb_retptr( (QTextCodec *) hbqt_par_QTextCodec( 1 )->codecForName( (const char *)hb_parcx(2) )); } HB_FUNC( QT_QTEXTCODEC_SETCODECFORCSTRINGS ) { hbqt_par_QTextCodec