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. Pointer in Managed Code

Pointer in Managed Code

Scheduled Pinned Locked Moved Managed C++/CLI
csharpvisual-studioquestionc++help
6 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.
  • N Offline
    N Offline
    NAVALMAN
    wrote on last edited by
    #1

    I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?

    L J 2 Replies Last reply
    0
    • N NAVALMAN

      I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      NAVALMAN wrote:

      Is it depend on my Visual Studio version?

      No, Visual Studio is an IDE and has nothing to do with the code generation or running of programs.

      Use the best guess

      N 1 Reply Last reply
      0
      • L Lost User

        NAVALMAN wrote:

        Is it depend on my Visual Studio version?

        No, Visual Studio is an IDE and has nothing to do with the code generation or running of programs.

        Use the best guess

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

        Thanks Richard MacCutchan. How the pointers are handled in Manged C++?

        L 1 Reply Last reply
        0
        • N NAVALMAN

          Thanks Richard MacCutchan. How the pointers are handled in Manged C++?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What do you mean?Pointers are pointers, nothing more. If you are asking about handing off unmanaged objects to managed code, then you need to look at some of these links[^].

          Use the best guess

          1 Reply Last reply
          0
          • N NAVALMAN

            I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            NAVALMAN wrote:

            How C# (managed code) handle the pointers?

            Since it is managed C++ it probably doesn't do anything especially clever. If C# is doing anything at all, it is just wrapping it in a small object. The C# specification might spell it out in detail.

            N 1 Reply Last reply
            0
            • J jschell

              NAVALMAN wrote:

              How C# (managed code) handle the pointers?

              Since it is managed C++ it probably doesn't do anything especially clever. If C# is doing anything at all, it is just wrapping it in a small object. The C# specification might spell it out in detail.

              N Offline
              N Offline
              NAVALMAN
              wrote on last edited by
              #6

              Thank you :)

              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