Hello to all. I have a project in which you use a library created using LTDL. This code has the following:
Qt Code:
  1. lt_dlhandle handle = NULL;
  2.  
  3. char libname[256];
  4. sscanf( lib, "%s %*s", libname );
  5.  
  6. if(( handle = lt_dlopenext( libname ) ))
  7. {
  8. model_callback_t initfunc = (model_callback_t)lt_dlsym( handle, "Init" );
  9.  
  10. // pass complete string into initfunc
  11. AddCallback( ..., initfunc, ...);
  12. }
To copy to clipboard, switch view to plain text mode 
where lib is the name of the library created using LTDL. I want to change a piece of code which I quoted above, with a piece of code where the same library was created using Qt.
I would therefore will replace the code
Qt Code:
  1. handle = lt_dlopenext (libname)
To copy to clipboard, switch view to plain text mode 
and
Qt Code:
  1. lt_dlsym( handle, "Init" )
To copy to clipboard, switch view to plain text mode 
. The Init is the name of a library function created using LTDL.
Can you help me ?