Hello,
I have an application based on the code provided to me by Xiphias3, in this thread, and it works exactly the way i want, but i have treatment that i do on the received files much more complicated than the attached example..
My idea is each time that i receive the file inside the WnProc, I launch a new thread for that make the treatment on it, close the new thread once done...
My question is how to do this multithreading in vb6 , at least i can try and see the result and if this is a good idea to make it to optimize performance when i receive a huge number of files ...
I am making some tests on a Windows XP, Dual Core, 1.66 ghz and 2 GB RAM, to finish the treatment on 2095 files it's taking me 1h31 minutes ...
Sending the files without treatement is taking about 6 min..
So i said maybe with multithreading i can make optimization.
by the way, during the time that i am doing the treatments i have a small window showing (form), other than the main form that is receiving the files (which is hidden during treatment) , and i want to allow the user to be able to type text inside this second window while the files are received by the first one and beeing processed, instead of making him wait long time untill all files are received and this also made me think about multi threading...