|294|error: argument of type ‘const wxCharBuffer (wxString::)(const wxMBConv&)const’ does not match ‘char*’|
||=== Build finished: 1 errors, 1 warnings ===|
This is an array of 256 characters; one char string.
wxString string2[256];
This is an array of 256 string objects; two hundred and fifty-six strings.
Do you actually intend to copy your one char string into two hundred and fifty-six wxStrings?
To create a wxstring from a char string, use the following:
1 2 3
constchar* string1 = "Hello world";
// assuming your string is encoded as UTF-8, change the wxConv* parameter as needed
wxString string2(sring1, wxConvUTF8);
To copy a char string into an already existing wxString, do much as Duoas describes.