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

lltostr

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 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.
  • S Offline
    S Offline
    styve
    wrote on last edited by
    #1

    Hi! The command, char* lltostr(long long value, char* endptr), are not defined in string? How do I get it to work?

    R 1 Reply Last reply
    0
    • S styve

      Hi! The command, char* lltostr(long long value, char* endptr), are not defined in string? How do I get it to work?

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

      Not sure what it is your trying to do, you may have your wires crossed, If you want to get a long value into a string format, you could do this: long myLong = 1231213; CString strLong; strLong.Format("%d",myLong); //strLong will then be "1231213"////////////////////// or if the other way round...getting a long from a string CString strLong = "1231213"; l = atol( s ); If you have to use a char[] and not a CString then do this, this is prob what you want to do..... long myLong = 1231213; sprintf( someChar, "%d",longvalue); will give "1231213" in char[] named someChar Is this what you mean??? Ross W:)

      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