Well this is quite easy.
First you want to start a thread which loads the dll. You can do this by implementing an object which inherits the functionality of threads from TThread!
Then perhaps you need an acknowledgement whether the library is loaded or not.
This is an example how you can do this, it is not the most beautiful way (I mean how to give parameters to the main program), but it should be easy to understand and to extend to your needs.
I did not comment the source code 'cause its this small, but if you have questions just ask.
Einloggen, um Attachments anzusehen!