PDA

View Full Version : Load WebKit dll at run time



Lele
6th September 2008, 15:54
Hi all,
I would like to understnd if it's possible to load a Qt dll when the executable has already been launched.
This can sound pretty weird, this could save some Mb from the executable to download and let the app start right away.
I don't know if this can be possible, so write the app that will use webkit dll only if available, if not sonload the dll and use it without restarting.

Thanks for any tips on that
Bye

jacek
9th September 2008, 01:18
You can load libraries on the fly, but it's hard to use them. See QLibrary.

I'm not sure if this is going to work, but to ease your work you could also create a plugin that is linked against that library. So after you load the library, your can just load the plugin, instead of playing with all that symbol resolution and pointers.

Lele
10th September 2008, 10:11
thanks,
yes I did some test with QpluginLoader and it seems to be the right choice.
bye