Page 1 of 1

Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 2:43 pm
by lzanardo
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.

Re: Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 3:12 pm
by nageswaragunupudi
What is your version of FWH?

Re: Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 3:30 pm
by lzanardo
nageswaragunupudi wrote:What is your version of FWH?

FWH 11.12
xHarbour 1.2.1 Rev. 6406
BCC55

Re: Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 3:57 pm
by nageswaragunupudi
Very old version.
What European language do you use?

Re: Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 4:32 pm
by lzanardo
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

Re: Convert WCHAR_T IN STRING

Posted: Wed Jul 31, 2024 5:22 pm
by nageswaragunupudi
Please try if this works for you

Code: Select all | Expand

cAnsi := WIDETOANSI( cStr16 )

Re: Convert WCHAR_T IN STRING

Posted: Thu Aug 01, 2024 11:46 am
by lzanardo
nageswaragunupudi wrote:Please try if this works for you

Code: Select all | Expand

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