L
Lord K.
Hi, my function gets a dynamic library from another process BUT NOT AS A
FILENAME; my function gets the content of the dynamic library itself
(like a dynamic library file that would have been opened with fopen).
My program know the data (the content of the dynamic library file) as a
char* array.
Now I want to use the single function contained in this dynamic library.
Of course I can write the data to some .so or .dll file and then open it
again with dlopen but since I already have the whole data loaded in
memory, I wonder wether I can do it quicker.
Of course I know perfectly the name of the function (in the dynamic
library to be used) that I want to call and its prototype as well.
Of course I want some fully portable solution since the program has to be
used on Linux, Windows and Mac OS.
What is the cleanest way to do it?
Thank you by advance.
FILENAME; my function gets the content of the dynamic library itself
(like a dynamic library file that would have been opened with fopen).
My program know the data (the content of the dynamic library file) as a
char* array.
Now I want to use the single function contained in this dynamic library.
Of course I can write the data to some .so or .dll file and then open it
again with dlopen but since I already have the whole data loaded in
memory, I wonder wether I can do it quicker.
Of course I know perfectly the name of the function (in the dynamic
library to be used) that I want to call and its prototype as well.
Of course I want some fully portable solution since the program has to be
used on Linux, Windows and Mac OS.
What is the cleanest way to do it?
Thank you by advance.