mkrausnick
Programmer
I am trying to implement PGP encryption in VFP7 to generate and email encrypted reports. I am using NSDPGP, a shareware com wrapper for PGP on Windows 2000. NSDPGP2 is written in VC++ and the doc comes with usage examples in WSH, ASP, Visual Basic and Visual C++, and states it also works with Delphi and Java.
I have registered the DLL using Regsvr32, and I can view NSDPGP32 in VFP's object browser. Here is a copy/paste from the VFP7 object browser:
Here is the VFP code I run:
The error message indicates VFP can't find the GetKeyIDFromUserID in the DLL.
What am I doing wrong?
Mike Krausnick
Dublin, California
I have registered the DLL using Regsvr32, and I can view NSDPGP32 in VFP's object browser. Here is a copy/paste from the VFP7 object browser:
Code:
Method GetKeyIDFromUserID(pubkeyring As String, privkeyring As String, userid As String) As String
Member of NSDPGP2Lib (cached).PGP
Defined in interface IPGP
Obtain the KeyID of a key from its UserID
Code:
DECLARE String GetKeyIDFromUserID IN nsdpgp2.dll String PublicRingFile , String PrivateRingFile , String UserID
cPublicPGPKeyRing = "C:\Documents and Settings\...\PGP\pubring.pkr"
cPrivatePGPKeyRing = "C:\Documents and Settings\...\PGP\secring.skr"
cUserName = "<myusername>"
? GetKeyIDFromUserID( cPublicPGPKeyRing,cPrivatePGPKeyRing,cUserName )
What am I doing wrong?
Mike Krausnick
Dublin, California