This is is originally from Mark Withers .
Mark Withers Mark Withers Mark Withers
I do not want anyone to tell me I steal code.
I just wanted to show Mark how to Update is code...
I got it running under 1 second for a 20 Mb file... yes!!! under 1 second
no, no API required...
only pure VB optimization...
I first calculated all FileLen and Len before the loop... this is THE optimisation that did all the thing
then I used a buffer for looping through the file
and I added null chars at the end of the dll name if it was too short, because in C++, strings ends with null chars
I hope this helps you Mark
Best regards,
Jean-Philippe Leconte
Senior programmer
Win32/64 expert
C++ / VB