Re: Gtk::Module



Alexander Volosatov wrote:

Hello.
Try to load function from dll.

Glib::Module module("libfsdyn.dll");
if (module)
{
  cout << "Module found\n";
  void * function = 0;
  module.get_symbol("func1", function);
(*function)();
}

But :
`void*' is not a pointer-to-object type

How to use function from library.




Try this:

Glib::Module module("libfsdyn.dll");
if (module)
{
  void (*function)(void);
  cout << "Module found\n";
  module.get_symbol("func1", function);
  (*function)();
}


Bob
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard



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