Re: how to get a vector from a function?(please help)



>Hi
>i have a function that get  the text from a  entry
>the text is pushed in a vector
>the function turns back the vector and so the text
>but if i try to do a printf in yłthe main program it segfauls
>
>how can i do?

you seem to understand so little about the way GTK (or other toolkits)
work that its hard to know where to point you. i suggest you might
start by looking at the examples code for GTK itself, specifically the
stuff for GtkEntry. 

put basically, your signal handler has the wrong prototype, and your
intended use seems to be completely wrong. you do not get a string
back from gtk_signal_connect_object.

--p



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