Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Hi All, i suggested adding an option for the wxSmith.

(1/3) > >>

Chun Jiu:
I'm Asian, Asian text in the program, the code will not compile correctly generated by the wxSmith.

For example:

   StaticText2 = new wxStaticText(Panel4, ID_STATICTEXT2, _(" ID域报文 (HEX): "), wxDefaultPosition, wxDefaultSize, wxSTATIC_BORDER, _T("ID_STATICTEXT2"));


I hope to have an option to automatically modify:

_(" ID域报文 (HEX): "),         ----》         _T(" ID域报文 (HEX): "),

Chun Jiu:
Only a "T" will be able to compile correctly ...

ollydbg:
I'm not sure, but if you can define a macro like below. :)

--- Code: ---#define _T T

--- End code ---

MortenMacFly:

--- Quote from: Chun Jiu on January 18, 2016, 12:46:49 pm ---I hope to have an option to automatically modify:
_(" ID域报文 (HEX): "),         ----》         _T(" ID域报文 (HEX): "),

--- End quote ---
Whats wrong with search for _(" and replace with _T(" (search&replace dialog)?

Jenna:

--- Quote from: MortenMacFly on January 21, 2016, 12:11:19 pm ---
--- Quote from: Chun Jiu on January 18, 2016, 12:46:49 pm ---I hope to have an option to automatically modify:
_(" ID域报文 (HEX): "),         ----》         _T(" ID域报文 (HEX): "),

--- End quote ---
Whats wrong with search for _(" and replace with _T(" (search&replace dialog)?

--- End quote ---
I guess it has to be done after each change to the corresponding wxs-file.
And this would be quite annoying.

Navigation

[0] Message Index

[#] Next page

Go to full version