CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    4

    What kind of class.

    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.





  2. #2

    Re: What kind of class.

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured