gmodule question

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

 



Hello,

I would use a string in my module:

in my module:
G_MODULE_EXPORT extern const gchar *foobar_name = "foobar";


in main application:

gchar* test;
g_module_symbol(module, "foobar_name", (gpointer*)&test);
if (test)
	g_message("++ %s ++", test);


But wrong, pointer contain bad address, why?


Thanks:
Kurucz István
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux