Yes, VFP6, SP3. It is much faster than VFP5 of course, but is is also much slower than CreateBinary(). I can live with the time on an up to date machine, but faster is always better! If I have to, I suppose I could have one the clients C++ programmers build me a DLL or even an FLL. It would be nice however, to be able to do something in VFP, maybe using the API. I've experimented very briefly with RtlCopyMemory, but I don't think that there is any hope there. The problem is that the arrays I am getting from a VB client are arrays of integers. The VB programmer can't seem to pass me a VT_ARRAY|VT_UI1, so part of the problem is I have to CHR() each element to build a string of bytes that I can CreateBinary() to pass to a C++ COM server. It all works now, but anything I can do to speed it up is good.
Thanks for the reply.
Gary Foster
>Hi Gary,
>
>>Does anyone know of a way to turn an array into a string quickly? I have to pass both arrays of bytes and binary strings to COM servers and clients. CreateBinary() is great at the conversion from string to array but I have been having to manually convert arrays to strings,(cData = cData + aData[x]...) MUCH slower, esp. with a 50k array. Thanks in advance.
>
>Are you using VFP 5? In this case you should upgrade to VFP 6, because the pattern cString = cString + SomeValue has been incredibly speeded up.
>
>Christof
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only