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. pointer to a CSTring?

pointer to a CSTring?

Scheduled Pinned Locked Moved C / C++ / MFC
data-structureshelpquestion
3 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.
  • N Offline
    N Offline
    ns
    wrote on last edited by
    #1

    IS there such a thing as ( CString *p, SizeOfArray)) when I'm passing in a CString array? I havent seeen CSTring pointers so I was wondering.... Appreciate your help, ns

    D 1 Reply Last reply
    0
    • N ns

      IS there such a thing as ( CString *p, SizeOfArray)) when I'm passing in a CString array? I havent seeen CSTring pointers so I was wondering.... Appreciate your help, ns

      D Offline
      D Offline
      DanielO
      wrote on last edited by
      #2

      perhaps you should use CStringArray m_pszMyString m_pszMyString.Add("1"); m_pszMyString.Add("2"); m_pszMyString.Add("3"); if(m_pszMyString.GetAt(0) == "1") { .. bla } hope it helps for people who think life is like a comedy for people who feel is a tragedy Whapole

      N 1 Reply Last reply
      0
      • D DanielO

        perhaps you should use CStringArray m_pszMyString m_pszMyString.Add("1"); m_pszMyString.Add("2"); m_pszMyString.Add("3"); if(m_pszMyString.GetAt(0) == "1") { .. bla } hope it helps for people who think life is like a comedy for people who feel is a tragedy Whapole

        N Offline
        N Offline
        ns
        wrote on last edited by
        #3

        helps! GetAt() was is new to me, so great to know it. Appreciate your help, ns

        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