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#
  4. pass Graphics object to function by using pointers?

pass Graphics object to function by using pointers?

Scheduled Pinned Locked Moved C#
csharpgraphicsquestion
5 Posts 2 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
    Mutty
    wrote on last edited by
    #1

    Can I do this in C#?

    C 1 Reply Last reply
    0
    • M Mutty

      Can I do this in C#?

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

      You can pass by reference, which is the same thing to all intents and purposes ( that is, you get the same result ). Christian Graus - Microsoft MVP - C++

      M 1 Reply Last reply
      0
      • C Christian Graus

        You can pass by reference, which is the same thing to all intents and purposes ( that is, you get the same result ). Christian Graus - Microsoft MVP - C++

        M Offline
        M Offline
        Mutty
        wrote on last edited by
        #3

        excellent, thanks! C# has some quirks I'm not used to in C++ -mutty

        C 1 Reply Last reply
        0
        • M Mutty

          excellent, thanks! C# has some quirks I'm not used to in C++ -mutty

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

          Mutty wrote: C# has some quirks I'm not used to in C++ Yeah, there's a lot that looks more similar than it is. If you try to use const and find it next to useless, try readonly. Not a whole lot better, but closer.... Christian Graus - Microsoft MVP - C++

          M 1 Reply Last reply
          0
          • C Christian Graus

            Mutty wrote: C# has some quirks I'm not used to in C++ Yeah, there's a lot that looks more similar than it is. If you try to use const and find it next to useless, try readonly. Not a whole lot better, but closer.... Christian Graus - Microsoft MVP - C++

            M Offline
            M Offline
            Mutty
            wrote on last edited by
            #5

            Well actually this brings up my next question... see my post about constant declarations. -mutty

            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