Quote Originally Posted by Elroy View Post
Yeah, and if it's in a byte array, just spin through the byte array and replace them with vbNullChar. That way, you've already created your AsciiZ strings without tampering with the size of the byte array at all.

SmUX2k, whenever you get ready to bite the bullet, I'm quite confident that managing things in a byte array (and just totally staying away from Strings) will vastly improve the performance you're getting.

-------------

With that vbNullChar replacement, just use that pointer array (that you'd generate), and pass VarPtr(bb(PointerYouWant)) into that above atof function, and there you go ... Double returned, straight from the byte array.
Aha! And there's my answer!

To be honest, I suspect my interest is going to be piqued at some point...it's not that I don't want to "bite the bullet", it's more that getting into byte array string manipulation is a huge undertaking (more so for me than for others who have experience with it) that could take tons of trial and error to get working, and potentially weeks of tweaking and playing around to fully complete that part of the project. I have the inclination, but not the time to put into it...I wanted to be further ahead than this already :-)