Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a StrToHex API function?
Message
From
05/02/2002 05:36:06
 
 
To
05/02/2002 04:56:57
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00614674
Message ID:
00615298
Views:
38
Albert,

Yes I use the single function call. It wasn't obvious ( for me ;-) ) but testing revealed that the result was correct with the single function call. I have a question related to this subject. I am using your MD5() function to generate fingerprints for files that we import into SQL Server. This allows us to very quickly detect if a given file has already been imported. So far I've been using the code from the wiki. I'm wondering if I could use the single function call MD5()? What's the difference between these two methods?

Thanks again for this great utility!

>>I just found a solution. Albert Ballinger's great utility FoxCrypto.fll (see http://fox.wikis.com/wc.dll?Wiki~FoxCrypto~VFP) has a function called HexEncoder which does exactly this. This function is soooooo fast. My StrToHex() version written in VFP took 127 seconds to convert a 180KB file. Albert's function does it in 0.1 second!!!
>>
>
>Glad you liked it. Did you use the single function call
>
>lcEncoded = HexEncoder( tcBinary, tlUpperCase )
>
>to encode the string? My examples all use the handle based functions and I am curious whether it is obvious that you can get the same result with a single function call.
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform