koorb said:
Is the .Net framework a bit like java where my code talks to the
framework and then the framework takes to the OS?
Essentially, yes. However, there are numerous differences in the actual
strategies and implementation details that you should read about over on
MSDN. One of the "nicest" features of .Net is the out-of-the-box ability to
cleanly mix-and-match components created using different .Net languages.
Java pretty much keeps you locked into its environment by making you jump
through hoops if you want to use non-Java components as part of a solution.
And does this mean that my code will be Longhorn compatible with no
changes?
That's hard to say this far out. As long as you adhere to the rules and
recommended best practices, you should expect your app to transition without
much difficulty, but you cannot expect that you won't have to get under the
hood to tweak things.
A good rule of thumb is that anytime the underlying OS changes, you must
test against it to look for subtle or substantial compatibility issues. For
example, the upcoming XP SP2 does present a number of compatibility
challenges, some due to rewrites of the underlying code that require some
things be changed to conform to new rules, some due to some defaults being
changed and altering the assumptions your software can make about its
environment without user intervention.
Alan