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

Conversion

Scheduled Pinned Locked Moved C / C++ / MFC
data-structures
3 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
    Subramaniam s V
    wrote on last edited by
    #1

    Hi All, Can anyone tell me as how I convert from a 2-dimensional charater array to a CStringArray. Thanks Subramaniam S.V.

    C 1 Reply Last reply
    0
    • S Subramaniam s V

      Hi All, Can anyone tell me as how I convert from a 2-dimensional charater array to a CStringArray. Thanks Subramaniam S.V.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I would imagine that you can iterate over the outer array, and if the inner array is of strings, you can builds a CString from each and put it in your array. I'd advocate using std::vector, I always prefer C++ to external libraries where possible. They're standard, and they are better.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      S 1 Reply Last reply
      0
      • C Christian Graus

        I would imagine that you can iterate over the outer array, and if the inner array is of strings, you can builds a CString from each and put it in your array. I'd advocate using std::vector, I always prefer C++ to external libraries where possible. They're standard, and they are better.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        S Offline
        S Offline
        Subramaniam s V
        wrote on last edited by
        #3

        No it is giving junk value when I try to assign Char[] to a string

        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