Re: Re:ustring to char*
- From: Murray Cumming <murrayc murrayc com>
- To: Erdem Gokhan YILMAZ <gokhan yilmaz havelsan com tr>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Re:ustring to char*
- Date: Wed, 04 May 2005 19:56:54 +0200
On Wed, 2005-05-04 at 20:30 +0300, Erdem Gokhan YILMAZ wrote:
> Hi,
>
> you may use the "msgEntry.get_text().c_str()" directly as a paramter
> for your function as given below.
> But I also recommend allocating space, as mentioned in the previous
> reply, Since I am not sure about the scope of the ustring returned by
> "msgEntry.get_text()"
It returns a Glib::ustring by value, not a pointer or a reference.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]