GetDelegateForFunctionPointer

  • Thread starter Thread starter jminiman
  • Start date Start date
J

jminiman

So this capability is absent in CF.NET 2.0. I'm pretty far from a COM
Interop expert...can someone share some sample code that is logically
equivalent to Marshal.GetDelegateForFunctionPointer? I'm not having
much success in finding such a sample on Google.
 
This isn't really possible with the Compact Framework because of the
limitations in the marshaller. Currently, there's no way to create a CCW so
that COM can call .NET code. You could work around this by creating a native
shim which called the function pointer when P/Invoked from your .NET code.
 
Back
Top