Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need help in using CryptoAPI

Need help in using CryptoAPI

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiojsonhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vu Truong
    wrote on last edited by
    #1

    I read the article named "The Cryptography API, or How to Keep a Secret", written by Robert Coleridge. He told that in order to compile the sample of this article I only need MS Visual C++ version 4.2 or later and Windows NT 4.0 or later. In fact, I cannot compile it with MS Visual C++ 6.0. I use MS Windows 2000 professional. I'm also failed in building my own application using Cryptographic API. In spite of including wincrypt.h, I still catch the undefined compile errors. In order compile my application, do I have to add any macro in my code or download any service pack for my Visual Studio?

    K 1 Reply Last reply
    0
    • V Vu Truong

      I read the article named "The Cryptography API, or How to Keep a Secret", written by Robert Coleridge. He told that in order to compile the sample of this article I only need MS Visual C++ version 4.2 or later and Windows NT 4.0 or later. In fact, I cannot compile it with MS Visual C++ 6.0. I use MS Windows 2000 professional. I'm also failed in building my own application using Cryptographic API. In spite of including wincrypt.h, I still catch the undefined compile errors. In order compile my application, do I have to add any macro in my code or download any service pack for my Visual Studio?

      K Offline
      K Offline
      karl_w
      wrote on last edited by
      #2

      vuduo wrote: In order compile my application, do I have to add any macro in my code or download any service pack for my Visual Studio? Try this one: #define _WIN32_WINNT 0x0500 This should do the trick. -- karl

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups