git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15479
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pConfig->Write("/MainFrame/w", (long) w);
pConfig->Write("/MainFrame/h", (long) h);
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:
switch ( dialog.ShowModal() )
{
case wxID_YES:
- wxLogStatus("You pressed \"Yes\"");
+ wxLogStatus(wxT("You pressed \"Yes\""));
- wxLogStatus("You pressed \"No\"");
+ wxLogStatus(wxT("You pressed \"No\""));
- wxLogStatus("You pressed \"Cancel\"");
+ wxLogStatus(wxT("You pressed \"Cancel\""));
- wxLogError("Unexpected wxMessageDialog return code!");
+ wxLogError(wxT("Unexpected wxMessageDialog return code!"));
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{
- wxLogStatus("Execute command: %s", data);
+ wxLogStatus(wxT("Execute command: %s"), data);
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{
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);
void MyFrame::OnExecMain(wxCommandEvent& WXUNUSED(event))
{
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))
{
EXEC("/bin/echo \"main program\""));
}
void MyFrame::OnExecThread(wxCommandEvent& WXUNUSED(event))
{
- MyExecThread thread("/bin/echo \"child thread\"");
+ MyExecThread thread(wxT("/bin/echo \"child thread\""));
- wxLogMessage("The exit code from a child thread is %ld",
+ wxLogMessage(wxT("The exit code from a child thread is %ld"),
- msg.Printf("This system has %d CPUs", nCPUs);
+ msg.Printf(wxT("This system has %d CPUs"), nCPUs);