wxString to cp866

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 394
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxString to cp866

Post by cutecode » Fri Feb 12, 2021 6:46 pm

Подскажите как перевести wxString to char* cp866

спасибо
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

User avatar
doublemax
Moderator
Moderator
Posts: 16372
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxString to cp866

Post by doublemax » Sat Feb 13, 2021 9:36 am

Code: Select all

wxString s(...);
wxCharBuffer charbuffer = s.mb_str(wxCSConv("CP866"));
charbuffer can be casted to const char *
Use the source, Luke!

User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 394
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxString to cp866

Post by cutecode » Sat Feb 13, 2021 9:57 am

doublemax!
Grate Thanks!!!
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

Post Reply