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. string array ?

string array ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structurestutorialquestion
4 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.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    I am using a sample / example C++ (?) code and run into this, new to me , expression

    array^ DirMag;

    I can ask Mrs Google. she knows stuff like that, but like to know if there are major advantages in using "string" array instead of customary C++ defined variable types. In this example I would rather use "uint32_t" if it does not matter much. Thanks Cheers

    D 1 Reply Last reply
    0
    • V Vaclav_

      I am using a sample / example C++ (?) code and run into this, new to me , expression

      array^ DirMag;

      I can ask Mrs Google. she knows stuff like that, but like to know if there are major advantages in using "string" array instead of customary C++ defined variable types. In this example I would rather use "uint32_t" if it does not matter much. Thanks Cheers

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #2

      This looks like "Managed C++", Microsoft's mutilation of C++ so that it fits into the .NET environment. IIRC, it was written as a "gateway drug" to get Standard C++ programmers to use the .NET environment, eventually graduating to C#.

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      V 1 Reply Last reply
      0
      • D Daniel Pfeffer

        This looks like "Managed C++", Microsoft's mutilation of C++ so that it fits into the .NET environment. IIRC, it was written as a "gateway drug" to get Standard C++ programmers to use the .NET environment, eventually graduating to C#.

        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

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

        Thanks. It is going to be an uphill battle to convert whatever it is to plain C++. Will keep me of the street.

        L 1 Reply Last reply
        0
        • V Vaclav_

          Thanks. It is going to be an uphill battle to convert whatever it is to plain C++. Will keep me of the street.

          L Offline
          L Offline
          leon de boer
          wrote on last edited by
          #4

          It's C++/CLI the ^ denotes a handle to a reference. C++/CLI - Wikipedia[^] The key point to understanding it

          Quote:

          Operator overloading works analogously to standard C++. Every * becomes a ^, every & becomes an %, but the rest of the syntax is unchanged

          You need to reverse that to turn it into C++ code you would recognize. I suggest you also want int32_t not uint32_t as just from it's name I am guessing it is a signed direction

          In vino veritas

          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