Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_crypt between vfp7, vfp8, and vfp9
Message
From
26/10/2005 10:08:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01061732
Message ID:
01062213
Views:
20
>I tried your example and it worked - thanks.
>
>But then I changed to use the EncryptSessionStreamFile function and it failed.
>
>
>loCrypt = NewObject("_CryptApi",Home()+"FFC\_Crypt.vcx")
>lcHome = "c:\temp\"
>lcFile = lcHome + "base.txt"
>STRTOFILE(SPACE(2000), lcFile)
>loCrypt = NewObject("_CryptApi",Home()+"FFC\_Crypt.vcx")
>? loCrypt.EncryptSessionStreamFile(lcFile, "flabbergaster12345a", lcHome + Version()+".txt")
>
>
>I do not get the same results.
>
>I am stumped.
>
>--rab

Yes with EncryptSessionStreamFile() VFP7 encrypted file is not the same as the ones produced in 8 and 9.
In API declarations change SHORT to INTEGER (for VFP7). Under VFP7 with SHORT it was treating bool Final parameter as .T.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform