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. overload native function

overload native function

Scheduled Pinned Locked Moved C#
c++visual-studiographicshelpquestion
7 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.
  • D Offline
    D Offline
    donkaiser
    wrote on last edited by
    #1

    Is it possible to overload a function from VS2005 IDE? If so, I want to overload graphics.drawline() which signature in CF is drawline(pen, int x1, int y1, int x2, int y2). I want to change it to drawline (pen, point A, point B). Any help?

    Donkaiser

    J 1 Reply Last reply
    0
    • D donkaiser

      Is it possible to overload a function from VS2005 IDE? If so, I want to overload graphics.drawline() which signature in CF is drawline(pen, int x1, int y1, int x2, int y2). I want to change it to drawline (pen, point A, point B). Any help?

      Donkaiser

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      er, that overload already exists! (in class System.Drawing.Graphics) public void DrawLine ( System.Drawing.Pen pen , System.Drawing.Point pt1 , System.Drawing.Point pt2 )

      --- How to get answers to your questions[^]

      D 1 Reply Last reply
      0
      • J J4amieC

        er, that overload already exists! (in class System.Drawing.Graphics) public void DrawLine ( System.Drawing.Pen pen , System.Drawing.Point pt1 , System.Drawing.Point pt2 )

        --- How to get answers to your questions[^]

        D Offline
        D Offline
        donkaiser
        wrote on last edited by
        #3

        Sorry! it's for CF. this overload is missing. But my point is to see if it's possible to overload IDE methods.

        E 1 Reply Last reply
        0
        • D donkaiser

          Sorry! it's for CF. this overload is missing. But my point is to see if it's possible to overload IDE methods.

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          Whats an IDE method? Either 2.0 or 3.0 ( idk which ) has a method for adding additional methods to a class. If you do a web search for new features of the two it can direct you. If those are not available the pattern is a wrapper class.

          A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane

          D 1 Reply Last reply
          0
          • E Ennis Ray Lynch Jr

            Whats an IDE method? Either 2.0 or 3.0 ( idk which ) has a method for adding additional methods to a class. If you do a web search for new features of the two it can direct you. If those are not available the pattern is a wrapper class.

            A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane

            D Offline
            D Offline
            donkaiser
            wrote on last edited by
            #5

            Im using .net 2.0. googling around still haven't found anything yet.

            Donkaiser

            E 1 Reply Last reply
            0
            • D donkaiser

              Im using .net 2.0. googling around still haven't found anything yet.

              Donkaiser

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #6

              Its extension methods and I think it is in 3 only. Looks like you need a wrapper class.

              A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane

              D 1 Reply Last reply
              0
              • E Ennis Ray Lynch Jr

                Its extension methods and I think it is in 3 only. Looks like you need a wrapper class.

                A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane

                D Offline
                D Offline
                donkaiser
                wrote on last edited by
                #7

                Yeah, I don't think it's possible to overload a native method. and the only solution is to do a wrapper.

                Donkaiser

                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