Hello to all. I have a project in which you use a library created using LTDL. This code has the following:
lt_dlhandle handle = NULL;
char libname[256];
sscanf( lib, "%s %*s", libname );
if(( handle = lt_dlopenext( libname ) ))
{
model_callback_t initfunc = (model_callback_t)lt_dlsym( handle, "Init" );
// pass complete string into initfunc
AddCallback( ..., initfunc, ...);
}
lt_dlhandle handle = NULL;
char libname[256];
sscanf( lib, "%s %*s", libname );
if(( handle = lt_dlopenext( libname ) ))
{
model_callback_t initfunc = (model_callback_t)lt_dlsym( handle, "Init" );
// pass complete string into initfunc
AddCallback( ..., initfunc, ...);
}
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
handle = lt_dlopenext (libname)
handle = lt_dlopenext (libname)
To copy to clipboard, switch view to plain text mode
and
lt_dlsym( handle, "Init" )
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 ?
Bookmarks