FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Convert WCHAR_T IN STRING
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 02:43 PM

Hello friends, I need help!!!

Has anyone managed to convert a WChar_t into a String?

Because I've tried everything and I can't do it, can you help me?

I don't have this UTF16toSTR8 routine!

Thanks.

Olá amigos,

estou necessitando de uma Ajuda!!!

alguem ja conseguiu converter um WChar_t em String? pois já tenei de tudo e não consigo, podem me ajudar ?

Não tenho essa rotina UTF16toSTR8 !

Obrigado.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 03:12 PM

What is your version of FWH?

Regards



G. N. Rao.

Hyderabad, India
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Re: Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 03:30 PM
nageswaragunupudi wrote:What is your version of FWH?

FWH 11.12
xHarbour 1.2.1 Rev. 6406
BCC55
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 03:57 PM

Very old version.

What European language do you use?

Regards



G. N. Rao.

Hyderabad, India
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Re: Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 04:32 PM
nageswaragunupudi wrote:Very old version.
What European language do you use?

Yes Very old; I need it because I use SQLLIB, => MySQL
Do I need to update? Shopping Newer version?

PT language. 850

Att.

lZanardo
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Convert WCHAR_T IN STRING
Posted: Wed Jul 31, 2024 05:22 PM
Please try if this works for you
Code (fw): Select all Collapse
cAnsi := WIDETOANSI( cStr16 )
Regards



G. N. Rao.

Hyderabad, India
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Re: Convert WCHAR_T IN STRING
Posted: Thu Aug 01, 2024 11:46 AM
nageswaragunupudi wrote:Please try if this works for you
Code (fw): Select all Collapse
cAnsi := WIDETOANSI( cStr16 )
Thanks.

I resolved it another way, as it only requires a return from a DLL, to process the NETWORK
I did it by ini
Work around Programming

Continue the discussion