M
Mr.Tickle
What classes are portable and what are not, I would say WinForms is NOT
portable, what others are not portable?
portable, what others are not portable?
Winforms is portable, but its likely not worth the effort(it would require aMr.Tickle said:What classes are portable and what are not, I would say WinForms is NOT
portable, what others are not portable?
Depends on what you want to do, do you literally mean run theMr.Tickle said:BZZZT wrong.
No its not portable, it uses pinvoke heavily, thats why Mono on linux
requires WINE to run.
Daniel O'Connell said:Depends on what you want to do, do you literally mean run the
System.Windows.Forms.dll? if so, you are just way to out there to even
bother answering, that is a windows dll, it'd be a silly idea to run any of
the framework provided assemblies nativly, they aren't meant to port across
runtimes any more than the JIT is.
Now, if you are not capable of imagining such a simple thing as re-writing
the assembly without using PInvoke(or PInvoking to a completly different set
of libraries), then you are severely lacking and should choose another
career path. Concept and\or interface portablility has NOTHING to do with
implementation portability. Sometimes implementations may not port while the
concept and interface can be ported with some work.
Porting the code to use another system, GTK for example(which mono is
attempting), while dropping very few features is very possible. Those
features that would be dropped you shouldn't be using anyway, they would
include things like messsages and overriding the windows proc, which is
obviously platform specific. Even dropping SendMessage and WndProc support
wouldn't break 95% of code, even that which is using it, some simply
wouldn't work, like forcing RichTextBox to print via the FORMATRANGE
message. Any code that relies on functionality that is platform specific was
designed with that in mind, I can assure you; or designed by people who
don't even know about mono, that depends on the situation.
You both need to actually do research before you respond rudely and learn to
think and imagine on your own. Things can almost always be achieved in
multiple ways, assuming otherwise just limits your abilities and will keep
you from solving many of the problems that you come across.
And that matters? Go to monos site and look, they are working on a limitedMr.Tickle said:GTK, never, its ugly.
Mr.Tickle said:The System namespace should be standardised to PORTABLE libraries.
Winforms should be either portable or if not, under the Microsoft.*
namespace (Vendor.blah.*)
Namespaces are not part of the language specification, fair enough but they
should be standardised as alot of code is dependant on them. Even coding a
console application is not guranteed as these namespaces are not
standardised. They maybe defacto standard but nowhere are they under any
specification.
The System namespace should be standardised to PORTABLE libraries.
Winforms should be either portable or if not, under the Microsoft.*
namespace (Vendor.blah.*)
Namespaces are not part of the language specification, fair enough but
they should be standardised as alot of code is dependant on them.
Even coding a console application is not guranteed as these namespaces
are not standardised. They maybe defacto standard but nowhere are
they under any specification.
here is a direct quote from go-mono.com:Mr.Tickle said:IT may compile but it sure wont run without WINE.