Convert WCHAR_T IN STRING

Post Reply
lzanardo
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Convert WCHAR_T IN STRING

Post 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.
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Convert WCHAR_T IN STRING

Post by nageswaragunupudi »

What is your version of FWH?
Regards

G. N. Rao.
Hyderabad, India
lzanardo
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Post by lzanardo »

nageswaragunupudi wrote:What is your version of FWH?

FWH 11.12
xHarbour 1.2.1 Rev. 6406
BCC55
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Convert WCHAR_T IN STRING

Post by nageswaragunupudi »

Very old version.
What European language do you use?
Regards

G. N. Rao.
Hyderabad, India
lzanardo
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Post 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
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Convert WCHAR_T IN STRING

Post by nageswaragunupudi »

Please try if this works for you

Code: Select all | Expand

cAnsi := WIDETOANSI( cStr16 )
Regards

G. N. Rao.
Hyderabad, India
lzanardo
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Post 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
Post Reply