In the FAQ, it says that .NET can be used to write programs using several different languages togetherin the same program as long as they are in different source files. How can this be done? Wouldn't they be incompatible to work together?
In the FAQ, it says that .NET can be used to write programs using several different languages togetherin the same program as long as they are in different source files. How can this be done? Wouldn't they be incompatible to work together?
No they wouldnt be incompatible. When you buy .Net or any other version of Visual Studio you are able to do things like this. It will only work with languages supported through the .NET and it can be kinda interesting to try. Things like this are done in java (native code) all the time.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
Could you give me an example of where this technique is applied (other than the one you just gave) and tell me why this is done? What are the advantages?
>What are the advantages?
Algorithms in C++.NET might be a bit faster, while the front end in C# will be easier to program.
You can do this because all files produce IL code and the IL code is then put together into one program. All .NET languages use the same framework and class library. The string in VB is the same as the one in C# or C++.NET.
I never heard any Java example of the same thing though, as Java is only one language.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
>>All .NET languages use the same framework and class library.
So, only OO languages would be used in .NET?
So, is the actual language changed, or just the way its used (ie. is C++ different from C++.NET)
>So, only OO languages would be used in .NET?
I think so, yes.
>is the actual language changed
Not the language itself, but the classes that are used.
C++.NET has no MFC, but uses the same class library as C# and VB and any other .NET language.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
Another good thing is that everyone can program in the language they like best. a VB program can work perfect with a Cobol program. But this also mean that managed C++ lost is edge over VB and such.
>
>is the actual language changed
Not the language itself, but the classes that are used.
<
actually it somewhat has, some features have been removed from C++.NET such as multiple inheritance, and a few others i can't remember now... but most people who decide to use .NET won't miss them though.
i on the other hand shall stick with the originals. C and C++.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Does the STL work with .NET?
that i don't know.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Me neither. I would think it does. I find it strange that they can remove multiple inheritance and still call it C++.
Those things are only removed in manages C++, in native C++ everything is the same, plus the STL is better than in MSVC++ 6.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
>plus the STL is better than in MSVC++ 6.
the STL was in MSVC!!!!!!
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
I think he's talking about the MFC container classes.....Originally posted by no-one
>plus the STL is better than in MSVC++ 6.
the STL was in MSVC!!!!!!