> 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
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 ?
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
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 )
>> {
>>
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
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