Re: [Fwd: Re: How to clear/replace filter list in File Chooser?] getline(...) function and Glib::ustring
- From: johnmb <johnmblackburn googlemail com>
- To: gtkmm-list gnome org
- Subject: Re: [Fwd: Re: How to clear/replace filter list in File Chooser?] getline(...) function and Glib::ustring
- Date: Mon, 26 Feb 2007 05:21:08 -0800 (PST)
Correction :-
std::string temp;
getline( stream, temp);
my_ustring = temp.c_str();
Sorry about that.
John
johnmb wrote:
>
> Can you not :-
>
> std::string temp = my_ustring.c_str();
> getline( stream, temp);
>
> I may have got the parameters to getling wronhg but you see what I mean.
>
> John
>
>
>
> Gezim Hoxha-2 wrote:
>>
>> Hi all,
>>
>> I want to read some strings from file but seems that the only function
>> available to do that is std::getline(...) from <string> library. Second
>> argument to getline is a std::string and I tried to use a Glib::ustring
>> but it didn't work because of argument type mismatch.
>>
>> So, my question is, how do I work around this?
>>
>> Thanks,
>> -Gezim
>>
>> P.S.: I checked the docs for ustring and there was no such thing as
>> getline implemented.
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>>
>>
>
>
--
View this message in context: http://www.nabble.com/getline%28...%29-function-and-Glib%3A%3Austring-tf3290808.html#a9158664
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]