Probably a noob question but interop isn\'t one of my strong points yet. Aside from limiting the number of overloads is there any reason I should declare my DllImports like:
I have a dll which accepts a struct that contains a pointer to a function to do a callback. How can I get an IntPtr to a function of my application to build the 开发者_如何学Cstruct?
So from what I can tell, every managed example of IntPtr addition I have found is WRONG. For example: http://www.atalasoft.com/cs/blogs/stevehawley/archive/2006/10/16/10987.aspx
I have a class that will have a few instances persistent throughout the duration of the application.These objects will each need to call a dll method that appends data fr开发者_JAVA技巧om an existing