http://www.dreamdu.com/blog/2008/04/25/cs_cpp_functionpointer/

解决方案 »

  1.   

    使用PInvoke,调用:
    http://blog.csdn.net/tangl_99/archive/2006/09/06/1182354.aspx
      

  2.   

    老问题,注意C#与C类型的对应,指针在C#中有关键字ref
      

  3.   

    如果是类成员函数该如何处理?
    如动态链接库中
    namespace class{
    pubic:
    static bool install(system::Intptr windowHandle, Callfun f);
    }其中Callfun是自定义的函数指针
    但在上层应用程序中使用C#中使用委托代替上述函数指针,就会出现错误CS0570:现用语言不支持"Install"
    各位高手如何处理?