Quote:
Originally Posted by koh-lexus
i know what mono is, my question was how hard it will be to run it on it.
application like toomboy stickys or a small winkalender are 100 % working.
appication like paint.net are not .
so the will it work with more then less easy changes or will it be a nearly complette rewrite ?
|
Quote:
Originally Posted by InfamousNoone
You know that .NET is more portable that Java now in terms of Linux and Mac because of the Mono project (It comes pre-installed with the latest revision of Ubuntu now even). Is this a joke? Unless this person is coding hardcore as using the 4.0 features like XAML (which Mono has stated they have no intention of supporting) then it will likely run fine on the mono platform.
|
^ ?????
Quote:
Originally Posted by pro4never
True... but just about every source I've seen public on epvp uses at least a few native calls which is why I said he'd need at least a decent knowledge of C# versus just following a simple copy/paste guide to get it working on linux.
I ofc have virtually zero knowledge of linux but just seems the bulk of it was still at least semi applicable. Aka: I confuzd! :D
|
You're right, platform invoke does screw-over mono, but it's not like it's particularly hard to get around it. Here's an example (though memcpy is available on linux afaik).
Code:
public static
#if !LINUX
extern
#endif
int memcpy(void* dst, void* src, int length)
#if !LINUX
;
#else
{
// Simple implementation, in no way the most efficient.
byte* ps = (byte*)src;
byte* pt = (byte*)dst;
for (int i = 0; i < length; i++)
{
*pt = *ps;
pt++;
ps++;
}
}
#endif