Can u answer this question: [Only registered and activated users can see links. Click Here To Register...] ?
Nobody could give me a valid answer before.
Nobody could give me a valid answer before.
Wtf. C# compiles to msil (AKA BYTECODE JUST FOR YOUR INFORMATION) and Java does compile to bytecode aswell. How does C# rely more on OS libraries than Java does ? BTW: The Windows API is stable and it doesn't vary alot (if they do anything, they add new functions). Please do some research before trying to help lol.Quote:
MAYBE, just MAYBE, compile your code on the other computer before you say "it doesn't work". C# relies on the OS-libraries, as the comments pointed out, while a language like Java relies on Java-only(mostly) libraries. OS-libraries can vary alot.
go compile your code on the other computer and i bet magically it will work, since you installed the IDE that will simply provide the missing libraries OR compile the code into working byte-code.
The signatures are already a part of code or what do you mean?Quote:
First of all, get your signatures from pinvoke: [Only registered and activated users can see links. Click Here To Register...]
What do you mean with "no work"? What do they return? Can you provide some code maybe?
C# does exactly the same so now tell me how portability is a problem here ? And still the native function he's calling won't change its signature.Quote:
great point, java compiles to bytecode that is interpreted by the JVM, which in turn talks to the OS, so java byte code looks VERY different and obviously won't work without a JVM.
the JVM relies on system libraries, not the code a java programmer writes, most times(there are ways to interact with certain system libraries obviously).
and obviously it'd be smart to compile the code on the other PC to make fucking sure that it is not a portability problem. Stop trying to find a solution if you aren't even sure that the portability simply is the problem.
And MSIL ist interpreted by .Net Framework which talks to the OS (to use your words). So where is the different now?Quote:
great point, java compiles to bytecode that is interpreted by the JVM, which in turn talks to the OS[...]
C# is as platform independent as Java is by specification. Simply spoken:Quote:
C# relies on the OS-libraries, as the comments pointed out, while a language like Java relies on Java-only(mostly) libraries.