Replies: 1 comment 6 replies
-
/cc @dotnet/interop-contrib @jkoritzinsky Is |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I'm trying to pass my interface
IFoo
to an exported function[DllImport("CppProject")] static extern int FooFunction(IFoo foo);
but I'm hitting a slight issue. During marshalling, the runtime asks my ComWrapper for the Vtable. I'm able to generate the Vtbale and pass it to the runtime. Problem is, when the exportedFooFunction
is called, it passes a completely made up pointer to theIFoo
instance, but the Vtable is correct. What am I doing wrong?Beta Was this translation helpful? Give feedback.
All reactions