Rosentti
Rosentti
CC#
Created by tommy on 9/14/2024 in #help
Why do we enclose the `Main` function inside of a class in C#?
The CLR probably doesn't support it, but since C++/CLI is fancy C++, it supports them in some way
9 replies
CC#
Created by Rosentti on 9/14/2024 in #help
Strange Marshalling issue
Ah. Makes sense actually. Thanks for the explanation!
7 replies
CC#
Created by Rosentti on 9/14/2024 in #help
Strange Marshalling issue
Welp, that was a quick fix that I didn't think of before. I just removed StructLayout from the Handle_t type altogether, and that fixed it. Now both of them are 8 bytes, as expected. I guess it layouted the internal fields of an Int32 too?
7 replies