wxT("unsupported format in wxDataObjectComposite"));
return dataObj->SetData(len, buf);
wxT("unsupported format in wxDataObjectComposite"));
return dataObj->SetData(len, buf);
wxCharBuffer buffer = wxConvLibc.cWX2MB( GetText().c_str() );
strcpy( (char*) buf, (const char*) buffer );
}
wxCharBuffer buffer = wxConvLibc.cWX2MB( GetText().c_str() );
strcpy( (char*) buf, (const char*) buffer );
}
SetText( wxConvUTF8.cMB2WX( (const char*) buf ) );
else
SetText( wxConvLibc.cMB2WX( (const char*) buf ) );
SetText( wxConvUTF8.cMB2WX( (const char*) buf ) );
else
SetText( wxConvLibc.cMB2WX( (const char*) buf ) );
- wxMBConvUTF16BE converter ;
- size_t len = converter.WC2MB( NULL , GetText().c_str() , 0 ) ;
+ wxMBConvUTF16BE converter ;
+ size_t len = converter.WC2MB( NULL , GetText().c_str() , 0 ) ;
wxCharBuffer buffer = converter.cWX2MB( GetText().c_str() );
memcpy( (char*) buf, (const char*) buffer , len + 2); // trailing unichar 0
}
wxCharBuffer buffer = converter.cWX2MB( GetText().c_str() );
memcpy( (char*) buf, (const char*) buffer , len + 2); // trailing unichar 0
}
wxCharBuffer buffer = wxConvLibc.cWX2MB( GetText().c_str() );
strcpy( (char*) buf, (const char*) buffer );
}
wxCharBuffer buffer = wxConvLibc.cWX2MB( GetText().c_str() );
strcpy( (char*) buf, (const char*) buffer );
}
}
bool wxTextDataObject::SetData(size_t WXUNUSED(len), const void *buf)
{
SetText(wxString((const wxChar *)buf));
}
bool wxTextDataObject::SetData(size_t WXUNUSED(len), const void *buf)
{
SetText(wxString((const wxChar *)buf));