--- rpc_doc_iface.cpp 2013-05-10 14:38:45.069964060 +0300 +++ rpc_doc_iface.cpp 2013-05-10 13:53:50.756603684 +0300 @@ -178,7 +178,7 @@ wxString loadDocument( wxT( "LoadDocument {" ) + aUrl + wxT( "}" ) ); - m_sock->Write( loadDocument.c_str(), strlen( loadDocument.c_str() ) ); + m_sock->Write( loadDocument.c_str(), strlen( loadDocument.mb_str() ) ); // wait for command completion m_sock->Read( m_buffer, RECV_MSG_SIZE ); @@ -200,7 +200,7 @@ wxString appendDocument( wxT( "AppendDocument {" ) + aUrl + wxT( "}" ) ); - m_sock->Write( appendDocument.c_str(), strlen( appendDocument.c_str() ) ); + m_sock->Write( appendDocument.c_str(), strlen( appendDocument.mb_str() ) ); // wait for command completion m_sock->Read( m_buffer, RECV_MSG_SIZE ); @@ -220,7 +220,7 @@ { wxString selectTable = wxString::Format( wxT( "SelectTable {%d}" ), aIndex ); - m_sock->Write( selectTable.c_str(), strlen( selectTable.c_str() ) ); + m_sock->Write( selectTable.c_str(), strlen( selectTable.mb_str() ) ); // wait for command completion m_sock->Read( m_buffer, RECV_MSG_SIZE ); @@ -238,9 +238,9 @@ int aStyle ) { wxString putCell = wxString::Format( wxT( "PutCell {%s} {%s} {%d}" ), - aCellAddr, aStr, aStyle ); + aCellAddr.c_str(), aStr.c_str(), aStyle ); - m_sock->Write( putCell.c_str(), strlen( putCell.c_str() ) ); + m_sock->Write( putCell.c_str(), strlen( putCell.mb_str() ) ); // wait for command completion m_sock->Read( m_buffer, RECV_MSG_SIZE );