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. getFunctionPointer()

getFunctionPointer()

Scheduled Pinned Locked Moved C#
question
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.
  • W Offline
    W Offline
    winx
    wrote on last edited by
    #1

    i have pointer of the method with getFunctionPointer() but how can i call method using that pointer. There are no answer on hole Net and 666MSDN :confused::mad: winx

    W 1 Reply Last reply
    0
    • W winx

      i have pointer of the method with getFunctionPointer() but how can i call method using that pointer. There are no answer on hole Net and 666MSDN :confused::mad: winx

      W Offline
      W Offline
      winx
      wrote on last edited by
      #2

      UfCourse i use C#

      J 1 Reply Last reply
      0
      • W winx

        UfCourse i use C#

        J Offline
        J Offline
        James Gupta
        wrote on last edited by
        #3

        I never knew about function pointer in C#, but at a guess they would return a delegate, or function signature, not the actual function itself?

        S 1 Reply Last reply
        0
        • J James Gupta

          I never knew about function pointer in C#, but at a guess they would return a delegate, or function signature, not the actual function itself?

          S Offline
          S Offline
          Saravanan_article
          wrote on last edited by
          #4

          i think there is no such concept of "Function Pointer" in C#, it might implemented as a Delegate in C#

          W 1 Reply Last reply
          0
          • S Saravanan_article

            i think there is no such concept of "Function Pointer" in C#, it might implemented as a Delegate in C#

            W Offline
            W Offline
            winx
            wrote on last edited by
            #5

            there also function Marshal.getDelegateForFunctionPointer(ptr,type) in 2.0 which make delegate from functionPointer (IntPtr) obtained by RuntimeMethodHandle.getFunctionPointer. I try to call function just by its address (function pointer) and there is no any article on all web There is many on C++ DLL which is microsoft base attention ...... winx

            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