Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: ollydbg on October 09, 2009, 06:24:51 am

Title: Show the wxString value script can easily be changed to this
Post by: ollydbg on October 09, 2009, 06:24:51 am
Code
mywxstring.ToAscii().m_str

I just find this from

http://www.nabble.com/KDevelop%3A-how-to-inspect-a-wxString-in-the-debugger-td20707759.html#a20708452

People says that's the way used in CodeLite. :D
Title: Re: Show the wxString value script can easily be changed to this
Post by: Jenna on October 09, 2009, 07:05:45 am
Do you know that ToAscii() returns a 7-bit-Ascii wxCharBuffer in unicode builds ?

That means all extended characters are replaced with underscores, that is not really helpful in many cases.
Title: Re: Show the wxString value script can easily be changed to this
Post by: ollydbg on October 09, 2009, 07:20:05 am
Do you know that ToAscii() returns a 7-bit-Ascii wxCharBuffer in unicode builds ?

That means all extended characters are replaced with underscores, that is not really helpful in many cases.

Oh, Thanks for your hint. 16-bit wxChar is preferred.