Re: Re:ustring to char*



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]