Originally posted by SioSio
You should remember that, even if API string manipulation took absolutely no time at all within the API code - which is clealy impossible but to deal with this hypothetically we'll assume such for now, then it would still be unlikely to perform too well as you will still have the overhead of setting up the API call and calling the procedure. Every parameter is at least one Push onto the stack and must at least readjust the stack pointer (SP Register) once it's finished. Not too considerable perhaps when compared with ordinary VBA code (which is only semi-compiled anyway) but it all adds up when dealing with such massive strings.
NB. Rabbit touched on this also but
Bytes are 8 bits in all circumstances. If/when you need to deal with Unicode characters then you'd need to work with them as Longs and not Bytes.All that said, there's no need to apologise. The OP (Ricardo) did specifically ask for help in that area too. It seems very unlikely it would give him what he requires - the fastest way to manipulate large files - but answering his question (or even just trying to) is always valid.
Comment