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. wincrypt.h?

wincrypt.h?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiocomhelpquestion
6 Posts 3 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.
  • A Offline
    A Offline
    adonisv
    wrote on last edited by
    #1

    I keep getting compiler errors from this file wincrypt.h :confused: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinCrypt.h(249): error C2501: 'HCRYPTPROV' : missing storage-class or type specifiers I've downloaded tutorials from this site..http://www.ultimategameprogramming.com/ The open gl tutorials for windows. :sigh: Normality is a weakness...

    _ 1 Reply Last reply
    0
    • A adonisv

      I keep getting compiler errors from this file wincrypt.h :confused: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinCrypt.h(249): error C2501: 'HCRYPTPROV' : missing storage-class or type specifiers I've downloaded tutorials from this site..http://www.ultimategameprogramming.com/ The open gl tutorials for windows. :sigh: Normality is a weakness...

      _ Offline
      _ Offline
      __yb
      wrote on last edited by
      #2

      #define _WIN32_WINNT 0x0600 #define WINVER 0x0600 and u better use the latest sdk from ms - its free

      A 1 Reply Last reply
      0
      • _ __yb

        #define _WIN32_WINNT 0x0600 #define WINVER 0x0600 and u better use the latest sdk from ms - its free

        A Offline
        A Offline
        adonisv
        wrote on last edited by
        #3

        Where do I put these declarations? I put them in wincrypt.h and in winbase.h. Still no luck...:(( Thanks for your help. Normality is a weakness...

        T 1 Reply Last reply
        0
        • A adonisv

          Where do I put these declarations? I put them in wincrypt.h and in winbase.h. Still no luck...:(( Thanks for your help. Normality is a weakness...

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #4

          put them in your stdafx.h or in the source file where you include wincrypt.h you should not be modifying system headers! dingbat!

          A 1 Reply Last reply
          0
          • T TheGreatAndPowerfulOz

            put them in your stdafx.h or in the source file where you include wincrypt.h you should not be modifying system headers! dingbat!

            A Offline
            A Offline
            adonisv
            wrote on last edited by
            #5

            Well I tried that with a project having only one source file and no stdafx.h and it didn't work. Normality is a weakness...

            _ 1 Reply Last reply
            0
            • A adonisv

              Well I tried that with a project having only one source file and no stdafx.h and it didn't work. Normality is a weakness...

              _ Offline
              _ Offline
              __yb
              wrote on last edited by
              #6

              As a last measure, u can define it in your code: typedef unsigned long ULONG_PTR; typedef ULONG_PTR HCRYPTPROV;

              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