Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complement to CreateBinary()
Message
De
16/07/1999 10:27:55
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00241273
Message ID:
00242301
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform