ID:132988
Jul 1 2009, 2:19 pm
|
|
Will a DLL written in c# work with byond?
|
Jul 1 2009, 4:00 pm
|
|
I don't see why they wouldn't, considering that it's all the same machine code in the end.
|
In response to Jeff8500
|
|
I thought C-octothorpe compiled to bytecode? Can you compile it to machine code?
|
In response to Jp
|
|
I'd say point is that it works :)
|
In response to Ripiz
|
|
If it compiles to bytecode it probably /doesn't/ work, depending on how C# dlls work.
|
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. |
In response to Jp
|
|
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.
|
In response to Jp
|
|
Oh, I assumed it compiled to machine code; you know the saying, though >_>.
|
In response to Jeff8500
|
|
C# is basically Microsoft's rip of java.
|