[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Gtk_Entry



Heinke Frerichs <H.Frerichs@gmx.de> writes:

> I want to create a new file with the filename I entered in a Gtk_Entry.
> For fopen I need a char * but Gtk_Entry->get_text returns a string (I'm
> using Gtk-- therefore my proggram is in c++)
> and fopen can't convert it. Is there any other method or do I have to
> write my own to get this working?

FILE *f = fopen(entry->get_text().c_str(), "w");


-- 
Michael Hussmann <m.hussmann@home.ins.de>      Why do we hide from the
http://home.pages.de/~m.hussmann            police dad? They use emacs 
f y cn rd ths y mst hv bn sng nx       son. We use vi. (Peter Gutmann)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]