Hi All..
I should point out that Threads within apps is a new area for me.. so please excuse my ignorance !
I am developing an app which requires the services of a 3rd party FTP dll.
However not wanting to stop the app while a potentially lengthy File transfer happens, I want to somehow wrap the dll's functionality in a thread.

No user input affecting the FTP process will be needed so I assume I should use a Worker Thread.

UINT FTPWorkerThread(LPVOID pParam)

{
// call dll functions here

}

Question..
How do I give the worker thread access to the dll ??
Can I use LoadLibrary inside the worker thread to get access here ?? and if so how ??

If I used a class based on CWinThread, could I just include the ftp.h file and call its functions??

Any guidance or example would be very useful
Many thanks for your time

Phil