|home |print view |recent changes |changed May 17, 2017 | |You are 22.214.171.124 <- set your identity!
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).
Filemenu with an
Exitthat closes the application when selected.
Filemenu by an
Open...entry that shows a dialog to browse your computer for a file. When a file is selected its content is loaded into the text entry field (left side). You will need to make it multi-line and scrollable for large files.
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
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
|home |print view |recent changes |changed May 17, 2017 |
|You are 126.96.36.199
<- set your identity!