>Hi,
>Im having problems making an app that uses adobe acrobat ocx, the cryptor dll (yes the one used in VFP!) and c#
>my boss requestme two apps
>
>app 1 = will be able to encrypt a pdf using cryptor dll(allready done using p-invoke)
>
>app 2 = will be able to decrypt and show the pdf in one winform with the adobe acrobat reader ocx(this is where im stuck)
>
>the cryptor dll decrypt the file in memory and never writes it to the disk, and and as ocx works inproc i though this will works but not :(
>
>any idea, link, experience or advice will be welcomed
>
>TIA Ariel Gimenez
Have you looked at the "Cryptography Overview" in the .NET Developers' Guide? You may be able to decrypt the files using the .NET Framework. Otherwise, you'll have to rely on unmanaged code, namely import the library reference, and basically re-create the class that's in the FFC.
George
Ubi caritas et amor, deus ibi est