Re: Loading multiple classes from dynamic linked libraries



On 2月22日, 上午12时22分, Emmanuel Fleury <emmanuel..fle...@xxxxxxxx> wrote:
Roberto Hawkowski wrote:
Hello,

Can some one point me the right direction how to create DLLs in C++ so
that I can load/unload multiple classes from them at runtime?

Can you advise me an open source, cross platform [Linux and Windows
and (ideailly on Solaris and QNX as well)] wrapper code to create and
handle (load/unload etc) DLLs?

I think you are looking for libdl or libtdl:http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

Look also for "man dlopen".
dlopen can easily handle the C data structure and the O.P is getting
to know how to instantiate a class from DLL, which I think is much
more difficult.

Regards
--
Emmanuel Fleury | Room: 261
Associate Professor, | Phone: +33 (0)5 40 00 69 34
LaBRI, Domaine Universitaire | Fax: +33 (0)5 40 00 66 69
351, Cours de la Libération | Email: emmanuel.fle...@xxxxxxxx
33405 Talence Cedex, France | URL: http://www.labri.fr/~fleury


.



Relevant Pages

  • Loading multiple classes from dynamic linked libraries
    ... Can some one point me the right direction how to create DLLs in C++ so ... that I can load/unload multiple classes from them at runtime? ... and (ideailly on Solaris and QNX as well)] wrapper code to create and ...
    (comp.os.linux.development.apps)
  • Re: Loading multiple classes from dynamic linked libraries
    ... Roberto Hawkowski wrote: ... Can some one point me the right direction how to create DLLs in C++ so ... that I can load/unload multiple classes from them at runtime? ... I think you are looking for libdl or libtdl: ...
    (comp.os.linux.development.apps)
  • Creating and handling dynamicly linked libraries in C++
    ... Can some one point me the right direction how to create DLLs in C++ so ... that I can load/unload multiple classes from them at runtime? ... and Windows] wrapper code to create and handle DLLs? ...
    (comp.unix.solaris)