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. What's the meaning of ^ in VS2005.NET

What's the meaning of ^ in VS2005.NET

Scheduled Pinned Locked Moved C / C++ / MFC
csharpquestion
5 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.
  • M Offline
    M Offline
    Ming Luo
    wrote on last edited by
    #1

    Hi all: I am really confused about the meaning of ^ in VS2005. I see many programs declared as something like: String^ xxx; MyClass^ yyy; Can anyone explain it to me please? Thanks very much!!!

    Asura

    M H 2 Replies Last reply
    0
    • M Ming Luo

      Hi all: I am really confused about the meaning of ^ in VS2005. I see many programs declared as something like: String^ xxx; MyClass^ yyy; Can anyone explain it to me please? Thanks very much!!!

      Asura

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      this is the new C++/CLI format for managed pointer, or reference (I think). Ask in the "C++/CLI" forum for a better answer.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      1 Reply Last reply
      0
      • M Ming Luo

        Hi all: I am really confused about the meaning of ^ in VS2005. I see many programs declared as something like: String^ xxx; MyClass^ yyy; Can anyone explain it to me please? Thanks very much!!!

        Asura

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        It represents a handle.It shows a handle to managed object.Poniters are with * but handles with ^.If you use of pointers then you must use of delete else you will have a leak but for handles its optionly.


        WhiteSky


        M 1 Reply Last reply
        0
        • H Hamid Taebi

          It represents a handle.It shows a handle to managed object.Poniters are with * but handles with ^.If you use of pointers then you must use of delete else you will have a leak but for handles its optionly.


          WhiteSky


          M Offline
          M Offline
          Ming Luo
          wrote on last edited by
          #4

          Does it mean handle is just another way of declaring a pointer? Is that right?

          Asura

          H 1 Reply Last reply
          0
          • M Ming Luo

            Does it mean handle is just another way of declaring a pointer? Is that right?

            Asura

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            In totally handles are different of pointers.I think I know a good site for you about C++/CLI and you will be find your answer and other answers that maybe you have a question for them.see here[^];)


            WhiteSky


            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