you cannot call c++ member methods from .net, just normal plain C functions.
>I am trying to figure out whether a specific callback interface can be
>implemented in .net. I have done implementations for a number of
[quoted text clipped - 10 lines]
> DllImport, not COM interfaces or their methods. Is there any way to
> convince .NET to use thiscall when making the callback to this method?
lgs.lgs - 20 May 2006 00:22 GMT
> you cannot call c++ member methods from .net, just normal plain C
> functions.
I'm not trying to call a c++ member method, I'm trying to get a c++ method
to call me. The interface in question is used for call backs.
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/
iamfiltergraphcallbackunabletorender.asp
I was not surprised to see my attempt to use this fail, since thiscall uses
a different method of passing params/cleaning the stack. I was just
wondering if there were some way to convince c# to use this other calling
convention.
Near as I can tell, the answer is what you said: no.