3 ms·
Exactly. It should be theoretically be possible to call C++ via interop: [DllImport("<MANGLED NAME>")] static extern void Foo(IntPtr @this, int param1
by zamalek 8y ago
Exactly.
It should be theoretically be possible to call C++ via interop:
[DllImport("<MANGLED NAME>")]
static extern void Foo(IntPtr @this, int param1, ...);
- sebazzz 8y agoThat will only work on x64 I believe. x86 requires the this pointer to be passed in register ECX [0] [0]: https://docs.microsoft.com/en-us/cpp/cpp/thiscall https://docs.microsoft.com/en-us/cpp/cpp/thiscall
- zamalek 8y agoI studied calling conventions too long ago, but wasn't ECX (registers and then stack, in general) stdcall on Windows? I could stand to absolute correction there, just curious.