diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 4c8cba7388..0177d1d3ab 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -140,7 +140,8 @@ int wxDirDialog::ShowModal() bi.hwndOwner = parent ? GetHwndOf(parent) : NULL; bi.pidlRoot = NULL; bi.pszDisplayName = NULL; -#ifdef __WXWINCE__ + // WinCE StandardSDK requires .c_str() form +#if defined(__WXWINCE__) && (defined(__POCKETPC__) || defined(__SMARTPHONE__)) bi.lpszTitle = m_message.mb_str(); #else bi.lpszTitle = m_message.c_str();