CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Question Passing delegates to C functions

    I am writing a wrapper for a C Dll which have a function like,

    [

    long SetEventRcv(int self, int EventHandler)

    ]

    how to pass evenhandler delegate to this function?

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Passing delegates to C functions

    Try look at Marshal.GetFunctionPointerForDelegate static method.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured