pConfig->Write("/MainFrame/w", (long) w);
pConfig->Write("/MainFrame/h", (long) h);
- pConfig->Write("/TestValue", "");
+ pConfig->Write("/TestValue", wxT("A test value"));
}
switch ( dialog.ShowModal() )
{
case wxID_YES:
- wxLogStatus("You pressed \"Yes\"");
+ wxLogStatus(wxT("You pressed \"Yes\""));
break;
case wxID_NO:
- wxLogStatus("You pressed \"No\"");
+ wxLogStatus(wxT("You pressed \"No\""));
break;
case wxID_CANCEL:
- wxLogStatus("You pressed \"Cancel\"");
+ wxLogStatus(wxT("You pressed \"Cancel\""));
break;
default:
- wxLogError("Unexpected wxMessageDialog return code!");
+ wxLogError(wxT("Unexpected wxMessageDialog return code!"));
}
}
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{
- wxLogStatus("Execute command: %s", data);
+ wxLogStatus(wxT("Execute command: %s"), data);
return TRUE;
}
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{
- wxLogStatus("Poke command: %s = %s", item.c_str(), data);
+ wxLogStatus(wxT("Poke command: %s = %s"), item.c_str(), data);
return TRUE;
}
void MyFrame::OnExecMain(wxCommandEvent& WXUNUSED(event))
{
- wxLogMessage("The exit code from the main program is %ld",
+ wxLogMessage(wxT("The exit code from the main program is %ld"),
EXEC("/bin/echo \"main program\""));
}
void MyFrame::OnExecThread(wxCommandEvent& WXUNUSED(event))
{
- MyExecThread thread("/bin/echo \"child thread\"");
+ MyExecThread thread(wxT("/bin/echo \"child thread\""));
thread.Run();
- wxLogMessage("The exit code from a child thread is %ld",
+ wxLogMessage(wxT("The exit code from a child thread is %ld"),
(long)thread.Wait());
}
break;
default:
- msg.Printf("This system has %d CPUs", nCPUs);
+ msg.Printf(wxT("This system has %d CPUs"), nCPUs);
}
wxLogMessage(msg);