gmodule question
- From: Kurucz István <kurucz istvan gmail com>
- To: gtk-list gnome org
- Subject: gmodule question
- Date: Sat, 15 May 2010 22:56:33 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]