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. SHA1- CheckSum Example in Microsoft Visual C++ 6.0

SHA1- CheckSum Example in Microsoft Visual C++ 6.0

Scheduled Pinned Locked Moved C / C++ / MFC
9 Posts 5 Posters 2 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.
  • U Offline
    U Offline
    User 12451583
    wrote on last edited by
    #1

    Dear All, Below is my Problem Statement. Currently i am trying to Calculate checksum using File Attribute(File Size) as Checksum input to Checksum Algorithm to get the Checksum hash and i am using the IDE Microsoft VS 2015 C++ for the same The above said scenario is working fine for me . It gives me below output and its proper one. Input : Hello Hash :f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0 ********************** So, i am trying to replicate the Same thing in Microsoft Visual C++ 6.0 and i am not not able build/Run the project. and i can see lots of External Dependencies are being referred from Program files. So,I request the somebody to share the Working piece of code which does SHA1 Checksum validation for the given input in VS 6.0 C++. I really appreciate if somebody could help me out to resolve the issue. Thanks, Goutham KD

    D 1 Reply Last reply
    0
    • U User 12451583

      Dear All, Below is my Problem Statement. Currently i am trying to Calculate checksum using File Attribute(File Size) as Checksum input to Checksum Algorithm to get the Checksum hash and i am using the IDE Microsoft VS 2015 C++ for the same The above said scenario is working fine for me . It gives me below output and its proper one. Input : Hello Hash :f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0 ********************** So, i am trying to replicate the Same thing in Microsoft Visual C++ 6.0 and i am not not able build/Run the project. and i can see lots of External Dependencies are being referred from Program files. So,I request the somebody to share the Working piece of code which does SHA1 Checksum validation for the given input in VS 6.0 C++. I really appreciate if somebody could help me out to resolve the issue. Thanks, Goutham KD

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

      Member 12485116 wrote:

      ...i am not not able build/Run the project. and i can see lots of External Dependencies are being referred from Program files.

      And we are supposed to know what these are?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      U 1 Reply Last reply
      0
      • D David Crow

        Member 12485116 wrote:

        ...i am not not able build/Run the project. and i can see lots of External Dependencies are being referred from Program files.

        And we are supposed to know what these are?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        U Offline
        U Offline
        User 12451583
        wrote on last edited by
        #3

        Hi. the external references for Example : wincrypt.h,Cryptohash.h etc. which reside inside below path. C:\Program Files (x86)\Windows Kits\8.1\Include\um there are lot many refereces inside above mentioned headers.

        D 1 Reply Last reply
        0
        • U User 12451583

          Hi. the external references for Example : wincrypt.h,Cryptohash.h etc. which reside inside below path. C:\Program Files (x86)\Windows Kits\8.1\Include\um there are lot many refereces inside above mentioned headers.

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

          So if the files reside on your computer (it would be an entirely different problem if you were trying to reference non-existent files), what exactly is the problem? :confused:

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          P 1 Reply Last reply
          0
          • D David Crow

            So if the files reside on your computer (it would be an entirely different problem if you were trying to reference non-existent files), what exactly is the problem? :confused:

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            P Offline
            P Offline
            Peter_in_2780
            wrote on last edited by
            #5

            I suspect OP's problem may be related to the antiquity of VC6. Cheers, Peter

            Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

            U D 2 Replies Last reply
            0
            • P Peter_in_2780

              I suspect OP's problem may be related to the antiquity of VC6. Cheers, Peter

              Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

              U Offline
              U Offline
              User 12451583
              wrote on last edited by
              #6

              Hello All, Just let me know On how to Add External dependencies in VS 6.0 C++ project. Thanks.

              J L 2 Replies Last reply
              0
              • U User 12451583

                Hello All, Just let me know On how to Add External dependencies in VS 6.0 C++ project. Thanks.

                J Offline
                J Offline
                Jochen Arndt
                wrote on last edited by
                #7

                External dependencies are libraries or object files. They can be added in the project settings at Properties - Linker - Input - Additional dependencies (not quite sure for VC6 but should be). Specify the full path. Optionally add the path(es) at Properties - Linker - General - Additional library directories. Then you can specify the plain name. The functions exported by libraries are declared in header files. These must be included in the source and header files that use declarations from those header files. Like with library directories you can avoid specifying the path in the include statements by adding the directories to the project settings (Properties - C/C++ - General - Additional include directories; again not sure with VC6).

                1 Reply Last reply
                0
                • P Peter_in_2780

                  I suspect OP's problem may be related to the antiquity of VC6. Cheers, Peter

                  Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

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

                  Possibly, but I still use it too.

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                  1 Reply Last reply
                  0
                  • U User 12451583

                    Hello All, Just let me know On how to Add External dependencies in VS 6.0 C++ project. Thanks.

                    L Offline
                    L Offline
                    leon de boer
                    wrote on last edited by
                    #9

                    I have doubts this will work the 8.1 kit code is expecting v120XP platform toolset and linking. It will be really interesting to see if it does work. Is there a reason you can't just download and install VS2015, something funky with the code?

                    In vino veritas

                    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