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. int to CString

int to CString

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello. I need pass a value stored in an int variable to a CString variable. Someone can help me? jesus choy

    N V N M 4 Replies Last reply
    0
    • L Lost User

      Hello. I need pass a value stored in an int variable to a CString variable. Someone can help me? jesus choy

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      Try searching through this message board. I think you will find this has been answered many times. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"

      1 Reply Last reply
      0
      • L Lost User

        Hello. I need pass a value stored in an int variable to a CString variable. Someone can help me? jesus choy

        V Offline
        V Offline
        vcplusplus
        wrote on last edited by
        #3

        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring.3a3a.format.asp?frame=true[^]

        1 Reply Last reply
        0
        • L Lost User

          Hello. I need pass a value stored in an int variable to a CString variable. Someone can help me? jesus choy

          N Offline
          N Offline
          nguyenvhn
          wrote on last edited by
          #4

          CString st; int k=10; st.Format("%d", k); Now st become "10". Is that your needed?

          1 Reply Last reply
          0
          • L Lost User

            Hello. I need pass a value stored in an int variable to a CString variable. Someone can help me? jesus choy

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            See the FAQ 6.3 How can I change a number into its string representation, or vice versa?[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ----

            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