FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CodePage Problem?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
CodePage Problem?
Posted: Fri Dec 04, 2009 01:12 PM
Hi,

I have a small sample of creating dialog using HB_SetCodePage function.

Code (fw): Select all Collapse
#include "fivewin.ch"

REQUEST HB_CODEPAGE_TRWIN

Procedure Main()

HB_SetCodePage( "TRWIN" )

DEFINE DIALOG oDlg 

    @ 20,10 SAY "User Name : DDDDDDDDDDDD" of oDlg PIXEL 

ACTIVATE DIALOG ODlg centered


RETURN .T.


If I remove HB_SetCodePage("TRWIN") line compiled Exe works. But It does not work with this line.

Is there anything wrong in code?

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: CodePage Problem?
Posted: Fri Dec 04, 2009 03:30 PM
Hi,

I have changed the below lines and there is not any problem.

Code (fw): Select all Collapse
    REQUEST HB_CODEPAGE_ESWIN
    HB_SetCodePage( "ESWIN" )


What should I do?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: CodePage Problem?
Posted: Fri Dec 04, 2009 09:39 PM

Hakan,

> If I remove HB_SetCodePage("TRWIN") line compiled Exe works. But It does not work with this line.

What error do you get ? A link error ? A runtime error ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: CodePage Problem?
Posted: Fri Dec 04, 2009 10:03 PM

Hi,

There is not any error reported. It just disappeared. I try to find the error. it disappeared it in DialogBoxIndirect function in activates method of dialog class. It does not return to activates method anymore. I could not found the DialogBoxIndirect function.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: CodePage Problem?
Posted: Fri Dec 04, 2009 10:35 PM

Hakan,

I can not find TRWIN in xharbour\source\lang*.c

Have you ever used it before ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: CodePage Problem?
Posted: Sat Dec 05, 2009 09:55 AM

Hi Antonio,

You are right. There is not. it is in xHarbour.org\Source\codepage\cptrwin.c

I do not use tr messages. I try to use only codepage.

No. I have never used before.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
Re: CodePage Problem?
Posted: Sun Jun 22, 2014 10:06 AM
Horizon wrote:

I have a small sample of creating dialog using HB_SetCodePage function.

Code (fw): Select all Collapse
#include "fivewin.ch"

REQUEST HB_CODEPAGE_TRWIN

Procedure Main()

HB_SetCodePage( "TRWIN" )

DEFINE DIALOG oDlg 

    @ 20,10 SAY "User Name : DDDDDDDDDDDD" of oDlg PIXEL 

ACTIVATE DIALOG ODlg centered


RETURN .T.


If I remove HB_SetCodePage("TRWIN") line compiled Exe works. But It does not work with this line.

Is there anything wrong in code?

Thanks,


Hi Hakan,

I have an application (xHarbour + FWH) in several languages and now I want to include Turkish. Have you got "TRWIN" for xHarbour?.

Thanks in advance.
Un saludo



Manuel
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: CodePage Problem?
Posted: Sun Jun 22, 2014 10:28 AM

Manuel,

I am sorry to say that I could't use TRWIN in xharbour. I have migrated to Harbour last year and not tried to use it.

Regards.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
Re: CodePage Problem?
Posted: Sun Jun 22, 2014 10:41 AM
Horizon wrote:Manuel,

I am sorry to say that I could't use TRWIN in xharbour. I have migrated to Harbour last year and not tried to use it.

Regards.


Thanks Hakan
Un saludo



Manuel

Continue the discussion