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. Managed C++/CLI
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved Managed C++/CLI
8 Posts 3 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.
  • P Offline
    P Offline
    PREMSONBABY
    wrote on last edited by
    #1

    [Message Deleted]

    C 1 Reply Last reply
    0
    • P PREMSONBABY

      [Message Deleted]

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

      You're in the managed C++ forum, do you mean a managed array of the managed string class ? They have a handle, not a pointer. To get a pointer, you need to pin it, I believe. That's assuming that is what you meant.

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

      P 1 Reply Last reply
      0
      • C Christian Graus

        You're in the managed C++ forum, do you mean a managed array of the managed string class ? They have a handle, not a pointer. To get a pointer, you need to pin it, I believe. That's assuming that is what you meant.

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

        P Offline
        P Offline
        PREMSONBABY
        wrote on last edited by
        #3

        [Message Deleted]

        C 1 Reply Last reply
        0
        • P PREMSONBABY

          [Message Deleted]

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

          OK, then a string array IS a pointer. string * pStrings = new string[20]; If you need more info, I recommend posting in the right forum ( Visual C++ ), and choosing a subject that describes your problem.

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

          P 1 Reply Last reply
          0
          • C Christian Graus

            OK, then a string array IS a pointer. string * pStrings = new string[20]; If you need more info, I recommend posting in the right forum ( Visual C++ ), and choosing a subject that describes your problem.

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

            P Offline
            P Offline
            PREMSONBABY
            wrote on last edited by
            #5

            [Message Deleted]

            C 1 Reply Last reply
            0
            • P PREMSONBABY

              [Message Deleted]

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

              I did say to ask in the right forum... That's NOT a string array, it's a char array. char test[20] = "12124312321412432"; char * p = &test[0];

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

              P 1 Reply Last reply
              0
              • C Christian Graus

                I did say to ask in the right forum... That's NOT a string array, it's a char array. char test[20] = "12124312321412432"; char * p = &test[0];

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

                P Offline
                P Offline
                PREMSONBABY
                wrote on last edited by
                #7

                [Message Deleted]

                N 1 Reply Last reply
                0
                • P PREMSONBABY

                  [Message Deleted]

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Hello Premson, Despite Christian repeatedly telling you that this is the wrong forum, why did you insist on pursuing the thread here? :~

                  Regards, Nish


                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                  Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog

                  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