ID:132988
Jul 1 2009, 4:19 pm
|
|
Will a DLL written in c# work with byond?
| |
#1 Jul 1 2009, 6:00 pm
|
|
I don't see why they wouldn't, considering that it's all the same machine code in the end.
| |
I thought C-octothorpe compiled to bytecode? Can you compile it to machine code?
| |
If it compiles to bytecode it probably /doesn't/ work, depending on how C# dlls work.
| |
#5 Jul 1 2009, 9:48 pm
|
|
Will a DLL written in c# work with byond? Not directly but you can build a C++ DLL that loads .NET and calls the C# dll. The only issue there is the fact that for some odd reason loading an assembly file only works with an absolute path which makes things a bit messy doing a direct approach. So you'd probably want to manually load up the dll into memory and then load the assembly from memory rather than a file. | |
C# assemblies (DLLs etc) are compiled into CIL, JIT compiled to resolve some late dependencies, then ran on the CLR, so no, they aren't machine code and they won't natively interface with machine code. Even if they could I would throw serious concerns about calling conventions.
| |
Oh, I assumed it compiled to machine code; you know the saying, though >_>.
| |