Click to See Complete Forum and Search --> : What kind of class.


Templar
May 21st, 1999, 10:12 AM
I am implementing a password/login dialog and I want to use the definitions in the header file wincrypt.h . I have included the functions for encrypting and decrypting the password in the same class as the dialog (CDialog) but even though I included the wincrypt.h file, the compiler won't understand these definitions:

HCRYPTPROV hProv;
HCRYPTKEY hKey;

What kind of class do I have to use in order to work with the definitions in wincrypt.h?.
What am I doing wrong?.
Please help me.

Thanks in advance.

Simon Rose
May 21st, 1999, 03:22 PM
Hey,

Not exactly an answer, but a check. Are you using Windows 95 release 2 (or later I assume), otherwise cryptography won't work. I wanted to do cryptography via the CryptoAPI, but failed due to the 'age' of my OS!!

Simon