Convert WCHAR_T IN STRING

Convert WCHAR_T IN STRING

Postby lzanardo » Wed Jul 31, 2024 2: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.
lzanardo
 
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Postby nageswaragunupudi » Wed Jul 31, 2024 3:12 pm

What is your version of FWH?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Convert WCHAR_T IN STRING

Postby lzanardo » Wed Jul 31, 2024 3:30 pm

nageswaragunupudi wrote:What is your version of FWH?



FWH 11.12
xHarbour 1.2.1 Rev. 6406
BCC55
lzanardo
 
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Postby nageswaragunupudi » Wed Jul 31, 2024 3:57 pm

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Convert WCHAR_T IN STRING

Postby lzanardo » Wed Jul 31, 2024 4: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
lzanardo
 
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm

Re: Convert WCHAR_T IN STRING

Postby nageswaragunupudi » Wed Jul 31, 2024 5:22 pm

Please try if this works for you
Code: Select all  Expand view
cAnsi := WIDETOANSI( cStr16 )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Convert WCHAR_T IN STRING

Postby lzanardo » Thu Aug 01, 2024 11:46 am

nageswaragunupudi wrote:Please try if this works for you
Code: Select all  Expand view
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
lzanardo
 
Posts: 9
Joined: Wed Nov 08, 2023 2:58 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Natter and 59 guests