Make wxMSW wxBase compile in UTF-8 mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-07-03 20:34:51 +00:00
parent fe048d7736
commit c6867dcd51
7 changed files with 18 additions and 18 deletions

View File

@@ -608,7 +608,7 @@ bool wxGetEnv(const wxString& WXUNUSED_IN_WINCE(var),
return false;
#else // Win32
// first get the size of the buffer
DWORD dwRet = ::GetEnvironmentVariable(var.wx_str(), NULL, 0);
DWORD dwRet = ::GetEnvironmentVariable(var.c_str(), NULL, 0);
if ( !dwRet )
{
// this means that there is no such variable
@@ -617,7 +617,7 @@ bool wxGetEnv(const wxString& WXUNUSED_IN_WINCE(var),
if ( value )
{
(void)::GetEnvironmentVariable(var.wx_str(),
(void)::GetEnvironmentVariable(var.c_str(),
wxStringBuffer(*value, dwRet),
dwRet);
}
@@ -635,7 +635,7 @@ bool wxDoSetEnv(const wxString& WXUNUSED_IN_WINCE(var),
// no environment variables under CE
return false;
#else
if ( !::SetEnvironmentVariable(var.wx_str(), value) )
if ( !::SetEnvironmentVariable(var.c_str(), value) )
{
wxLogLastError(_T("SetEnvironmentVariable"));
@@ -648,7 +648,7 @@ bool wxDoSetEnv(const wxString& WXUNUSED_IN_WINCE(var),
bool wxSetEnv(const wxString& variable, const wxString& value)
{
return wxDoSetEnv(variable, value.wx_str());
return wxDoSetEnv(variable, value.c_str());
}
bool wxUnsetEnv(const wxString& variable)