Re: convert gpointer to glib::ustring
- From: Bob Caryl <bob fis-cal com>
- To: Anca Mitrica <ancamitrica yahoo com>
- Cc: gtkmm-list gnome org
- Subject: Re: convert gpointer to glib::ustring
- Date: Fri, 12 Aug 2005 04:50:38 -0500
Hey Anca,
Just typecast the return value to Glib::ustring:
Glib::ustring *return_value = (Glib::ustring *)g_async_queue_pop(queue);
Cheers!
Bob
Anca Mitrica wrote:
Hi,
I am using g_async_queue_pop/push for communicating
between threads. I put a message in a g_async_queue
with g_async_queue_push, but when i am trying to pop
from the queue, i have a problem with the type of the
message.
When push into the queue, I do:
Glib::ustring line;
g_async_queue_push(queue,&line);
I wanto to retrieve messages from the queue also as
Glib::ustring, but g_async_queue_pop returns a
gpointer.
How can i convert a gpointer to a Glib::ustring??? Can
anyone help me ???
Thank you,
Anca Mitrica
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]