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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Integer to hexadecimal conversion

Integer to hexadecimal conversion

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 3 Posters 1 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.
  • B Offline
    B Offline
    BoudewijnEctor
    wrote on last edited by
    #1

    Hi Can someone know a library wich is used to convert hexadecimal numbers to integers (I know how to do this, but I don't have time to wirte it myself). I just need an open-source function. Thanks

    R A 2 Replies Last reply
    0
    • B BoudewijnEctor

      Hi Can someone know a library wich is used to convert hexadecimal numbers to integers (I know how to do this, but I don't have time to wirte it myself). I just need an open-source function. Thanks

      R Offline
      R Offline
      RChin
      wrote on last edited by
      #2

      BoudewijnEctor wrote: convert hexadecimal numbers to integers I think you might mean hexadecimal strings to a number. The C++ library function, strtol() will do the job for you. Or _tcstol() for the UNICODE compatible function. long wcstol( const wchar_t *nptr, wchar_t **endptr, int base ); You just need to specify the base, in your case this would be 16. **I Dream of Absolute Zero


      **

      1 Reply Last reply
      0
      • B BoudewijnEctor

        Hi Can someone know a library wich is used to convert hexadecimal numbers to integers (I know how to do this, but I don't have time to wirte it myself). I just need an open-source function. Thanks

        A Offline
        A Offline
        Alexander M
        wrote on last edited by
        #3

        the question is kinda bad! what do u need the conversion for? hexadecimal to (int)string or what? Don't try it, just do it! ;-)

        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