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. Header file update

Header file update

Scheduled Pinned Locked Moved C / C++ / MFC
securityannouncement
8 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.
  • S Offline
    S Offline
    sunit5
    wrote on last edited by
    #1

    i am programming a Socket with SSL .so i had to include header file for encrytion and SSL. #include <wincrypt.h> #include <wintrust.h> #include <Schnlsp.h> in stdafx.h even i mentioned #define _WIN32_WINNT 0x0500 in stdafx.so that crytoAPI can be used. when i compile i got errors.when i clicked on errors i found that number of member variables of some of the structures in these header files r different from those mentioned in msdn.even some structures which r mentioned in msdn r not present in header files. i want to know whether i have to update these header files.if it is then how thanx for any suggestion -- modified at 9:03 Friday 9th September, 2005

    P D 2 Replies Last reply
    0
    • S sunit5

      i am programming a Socket with SSL .so i had to include header file for encrytion and SSL. #include <wincrypt.h> #include <wintrust.h> #include <Schnlsp.h> in stdafx.h even i mentioned #define _WIN32_WINNT 0x0500 in stdafx.so that crytoAPI can be used. when i compile i got errors.when i clicked on errors i found that number of member variables of some of the structures in these header files r different from those mentioned in msdn.even some structures which r mentioned in msdn r not present in header files. i want to know whether i have to update these header files.if it is then how thanx for any suggestion -- modified at 9:03 Friday 9th September, 2005

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      You cant change headers provided. There is certain version mismatch

      S 1 Reply Last reply
      0
      • P prasad_som

        You cant change headers provided. There is certain version mismatch

        S Offline
        S Offline
        sunit5
        wrote on last edited by
        #3

        i m working in VC++6 and my OS is Windows 2000 SERVER

        1 Reply Last reply
        0
        • S sunit5

          i am programming a Socket with SSL .so i had to include header file for encrytion and SSL. #include <wincrypt.h> #include <wintrust.h> #include <Schnlsp.h> in stdafx.h even i mentioned #define _WIN32_WINNT 0x0500 in stdafx.so that crytoAPI can be used. when i compile i got errors.when i clicked on errors i found that number of member variables of some of the structures in these header files r different from those mentioned in msdn.even some structures which r mentioned in msdn r not present in header files. i want to know whether i have to update these header files.if it is then how thanx for any suggestion -- modified at 9:03 Friday 9th September, 2005

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          sunit5 wrote: #include <wincrypt.h> // not needed since it is included by wintrust.h #include <wintrust.h> #include <Schnlsp.h> Are you including windows.h before these? Have you installed the Feb 2003 Platform SDK, and adjusted the search paths to look in it first for include and library files?


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          -- modified at 10:11 Friday 9th September, 2005

          S 1 Reply Last reply
          0
          • D David Crow

            sunit5 wrote: #include <wincrypt.h> // not needed since it is included by wintrust.h #include <wintrust.h> #include <Schnlsp.h> Are you including windows.h before these? Have you installed the Feb 2003 Platform SDK, and adjusted the search paths to look in it first for include and library files?


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

            -- modified at 10:11 Friday 9th September, 2005

            S Offline
            S Offline
            sunit5
            wrote on last edited by
            #5

            Thanx a Lot Mr David Crow.thanx once again

            D 1 Reply Last reply
            0
            • S sunit5

              Thanx a Lot Mr David Crow.thanx once again

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              So is the problem fixed? What was the solution?


              "One must learn from the bite of the fire to leave it alone." - Native American Proverb

              S 2 Replies Last reply
              0
              • D David Crow

                So is the problem fixed? What was the solution?


                "One must learn from the bite of the fire to leave it alone." - Native American Proverb

                S Offline
                S Offline
                sunit5
                wrote on last edited by
                #7

                Thanx for ur suggestion as i was baffled by this problem.i have to arrange CD for February 2003 SDK.As soon as i get and install it,I will notify you that whether the problem has been fixed.

                1 Reply Last reply
                0
                • D David Crow

                  So is the problem fixed? What was the solution?


                  "One must learn from the bite of the fire to leave it alone." - Native American Proverb

                  S Offline
                  S Offline
                  sunit5
                  wrote on last edited by
                  #8

                  Thanx for ur Sugeestion. Yes the problem is fixed.The Solution was to Update the SDK using FEB 2003 Platform SDK. I installed Core SDK (from Patform SDK) for updating wincrypt.h and wintrust.h . And for Schnlsp.h(or one can include Schannel.h as Schnlsp.h includes Schannel.h)i installed Internet Development SDK from Platform SDK

                  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