I'm writing a wrapper for a dll. The dll has a method whose signature resembles the following:
unsigned long aMethod(void *anyParameter, 
void (*anotherMethod)(const char *,  void *))
I've searching at google for a tutorial to give me insight on开发者_开发问答 how to write the signature on C# so the framework can do the marshalling process.
How can it be written? Do you know about any tutorial, book or documentation on this subject?
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
delegate void AnotherMethodDelegate(string s, IntPtr anyParameter);
[DllImport("dllname",
           CallingConvention = CallingConvention.Cdecl,
           CharSet = CharSet.Ansi)]
uint aMethod(IntPtr anyParameter, AnotherMethodDelegate anotherMethod);
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论