From f5166ed458810001245d1a0a9eda28fef3e54df8 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Mon, 3 Jan 2000 02:14:45 +0000 Subject: [PATCH] Unicode compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/menu.cpp | 2 +- src/msw/menuitem.cpp | 2 +- src/msw/window.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index e2bb43b5f8..0894f1f6cf 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -219,7 +219,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos) // menu is just a normal string (passed in data parameter) flags |= MF_STRING; - pData = (char*)pItem->GetText().c_str(); + pData = (wxChar*)pItem->GetText().c_str(); } BOOL ok; diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index f9e310d9a9..9b6dbe9b52 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -240,7 +240,7 @@ void wxMenuItem::SetText(const wxString& text) #endif //owner drawn { flagsOld |= MF_STRING; - data = (char*) text.c_str(); + data = (wxChar*) text.c_str(); } if ( ::ModifyMenu(hMenu, id, diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e8b06acbe9..b3c922955f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2164,7 +2164,7 @@ void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win) if ( oldWin && (oldWin != win) ) { wxString str(win->GetClassInfo()->GetClassName()); - wxLogError("Bug! Found existing HWND %X for new window of class %s", (int) hWnd, (const char*) str); + wxLogError(wxT("Bug! Found existing HWND %X for new window of class %s"), (int) hWnd, (const wxChar*) str); } else if (!oldWin) { @@ -2336,7 +2336,7 @@ bool wxWindow::MSWCreate(int id, HWND hWnd = (HWND) node->GetKeyInteger(); if (hWnd != (HWND) m_hWnd) { - wxLogError("A second HWND association is being added for the same window!"); + wxLogError(wxT("A second HWND association is being added for the same window!")); } } #endif -- 2.47.2