COnverting CString to Unsigned short

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tezu
    New Member
    • Dec 2008
    • 39

    COnverting CString to Unsigned short

    Hi all,
    '
    How can i convert a cstring to unsigned short

    Thanks in advance :)
  • whodgson
    Contributor
    • Jan 2007
    • 542

    #2
    Give an example of the type of cstring you wish to convert.

    Comment

    • tezu
      New Member
      • Dec 2008
      • 39

      #3
      this may be one of the string 0x720

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        You can use atol. BUT you are responsible that the string values will fit in an unsigned short.

        Comment

        Working...