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. hi...

hi...

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
2 Posts 2 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.
  • _ Offline
    _ Offline
    _Rocket_ 0
    wrote on last edited by
    #1

    Hi all code project members... i new in VC++ programming...i have a problem to convert a string of hex value such as "E302" to the hex number such as oxE302... i used the wcstol(...) but i seen not work.... Thankz in advance Rgds :_Rocket_:

    M 1 Reply Last reply
    0
    • _ _Rocket_ 0

      Hi all code project members... i new in VC++ programming...i have a problem to convert a string of hex value such as "E302" to the hex number such as oxE302... i used the wcstol(...) but i seen not work.... Thankz in advance Rgds :_Rocket_:

      M Offline
      M Offline
      MVH
      wrote on last edited by
      #2

      DId I understand you correctly, you want to convert hex E302 to a long-integer value? (coz that's what wcstol does) wcstol input syntax is [whitespace] [{+ | ?}] [0 [{ x | X }]] [digits] You need to give the "E302" string to the function as "0xE302". ------------------------------------------ Experience is the name every one gives to their istakes. -Oscar Wilde Experience is one thing you can't get for nothing. - Oscar Wilde

      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