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. Visual Basic
  4. Hashcode to string

Hashcode to string

Scheduled Pinned Locked Moved Visual Basic
question
8 Posts 5 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
    V 2
    wrote on last edited by
    #1

    Hi How can i convert hashcode in string Like this hashcode -694847 Any idea would be appreciated Thanks

    Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

    T G V 3 Replies Last reply
    0
    • V V 2

      Hi How can i convert hashcode in string Like this hashcode -694847 Any idea would be appreciated Thanks

      Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      ~V~ wrote:

      convert hashcode in string

      isn't possible you can only hash as string and compare it to the hascode you have

      1 Reply Last reply
      0
      • V V 2

        Hi How can i convert hashcode in string Like this hashcode -694847 Any idea would be appreciated Thanks

        Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        The ToString method will turn -694847 into "-694847". If you mean that the hash code is created from a string, and you want that string back, that's not possible. There is nearly an infinite number of strings sharing the same hash code. For fun, I tried to calculate the number of possible strings sharing the same hash code, but the calculator in windows can't handle numbers nearly that big...

        Despite everything, the person most likely to be fooling you next is yourself.

        modified on Friday, July 18, 2008 1:55 PM

        1 Reply Last reply
        0
        • V V 2

          Hi How can i convert hashcode in string Like this hashcode -694847 Any idea would be appreciated Thanks

          Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

          V Offline
          V Offline
          V 2
          wrote on last edited by
          #4

          Thanks to both of U for ur information

          Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

          G 1 Reply Last reply
          0
          • V V 2

            Thanks to both of U for ur information

            Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            ~V~ wrote:

            Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

            A good ambition, but not something that you can count on. (And somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"... ;) ) You should know that no programmer ever delivers 100% all of the time. You always make mistakes from time to time, so you should write the code in a way so that the compiler catches most of the mistakes, and so that you get proper error messages when anything goes wrong. You should generally strive to make your code as simple as possible, not as clever as possible. Consider one of my favorite quotes: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan :)

            Despite everything, the person most likely to be fooling you next is yourself.

            P A V 3 Replies Last reply
            0
            • G Guffa

              ~V~ wrote:

              Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

              A good ambition, but not something that you can count on. (And somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"... ;) ) You should know that no programmer ever delivers 100% all of the time. You always make mistakes from time to time, so you should write the code in a way so that the compiler catches most of the mistakes, and so that you get proper error messages when anything goes wrong. You should generally strive to make your code as simple as possible, not as clever as possible. Consider one of my favorite quotes: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan :)

              Despite everything, the person most likely to be fooling you next is yourself.

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Guffa wrote:

              doning

              He might want to check his spelling too ;P

              Guffa wrote:

              somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"

              That's funny. I found the not spelling it out rather annoying. Fighting the urge to down vote him just for that.

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

              1 Reply Last reply
              0
              • G Guffa

                ~V~ wrote:

                Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

                A good ambition, but not something that you can count on. (And somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"... ;) ) You should know that no programmer ever delivers 100% all of the time. You always make mistakes from time to time, so you should write the code in a way so that the compiler catches most of the mistakes, and so that you get proper error messages when anything goes wrong. You should generally strive to make your code as simple as possible, not as clever as possible. Consider one of my favorite quotes: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan :)

                Despite everything, the person most likely to be fooling you next is yourself.

                A Offline
                A Offline
                Alsvha
                wrote on last edited by
                #7

                Nice quote, and very fitting :)

                --------------------------- Blogging about SQL, Technology and many other things

                1 Reply Last reply
                0
                • G Guffa

                  ~V~ wrote:

                  Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

                  A good ambition, but not something that you can count on. (And somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"... ;) ) You should know that no programmer ever delivers 100% all of the time. You always make mistakes from time to time, so you should write the code in a way so that the compiler catches most of the mistakes, and so that you get proper error messages when anything goes wrong. You should generally strive to make your code as simple as possible, not as clever as possible. Consider one of my favorite quotes: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan :)

                  Despite everything, the person most likely to be fooling you next is yourself.

                  V Offline
                  V Offline
                  V 2
                  wrote on last edited by
                  #8

                  Hi Guffa, It doesn't matter if you don't like my quote Everybody should be aggree with me its not compulsory And bytheway you worte ;P

                  You should know that no programmer ever delivers 100% all of the time

                  And somewhat ironic that you don't make the effort to write out words like "you", "your" and "are"...

                  I used U,Ur,R because its a new style to write the quote not the vb.net code where we have to write correct word :zzz: But My 100% means your 100% effort not the 100% time Anyways thanks once again for answered my question :rose:

                  Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...

                  modified on Saturday, July 19, 2008 7:45 AM

                  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