go to start Ex W13
|home |print view |recent changes |changed May 17, 2017 |
exact
|You are 54.81.139.56 <- set your identity!

Sections: Catch up from Testat Exercise Backlog | GUI Programming Exercise | How the application could look |

Catch up from Testat Exercise Backlog ^

GUI Programming Exercise ^

Note: If you have not managed to get the wxWidgets Hello World example compiled an running, do this first.

Create a simple EncodingViewer GUI application that allows you to enter text into a text box on the left. On the right you should have another text box (not editable) that displays the character values in hex format (00 to FF).

Additonal requirements:

Optional features:

Hint 1: You want to use wxFormBuilder to quickliy assemble the UI components.

Hint 2: There is conversion support in the standard library codecvt header. You can use u16string and u32string as intermediate representation.

std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> utf16conv;
std::u16string utf16 = utf16conv.from_bytes(contentData);

or use the conversion members of wxString

str.mb_str(wxMBConvUTF16BE{})

How the application could look ^


|home |print view |recent changes |changed May 17, 2017 |
exact
|You are 54.81.139.56 <- set your identity!

Ex W13
go to start