News for hackers. Stuff that matters.
Re:Running C++ code from C# Dotnet Core by zamalek on Friday August 17, 2018 @06:27PM (#17785873)
Exactly.

It should be theoretically be possible to call C++ via interop:

    [DllImport("<MANGLED NAME>")]
    static extern void Foo(IntPtr @this, int param1, ...);
Re:Running C++ code from C# Dotnet Core by sebazzz on Saturday August 18, 2018 @01:35AM (#17787029)
That 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

Re:Running C++ code from C# Dotnet Core by zamalek on Saturday August 18, 2018 @02:00AM (#17787109)
I 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.