.NET question

This is a discussion on .NET question within the A Brief History of Cprogramming.com forums, part of the Community Boards category; In the FAQ, it says that .NET can be used to write programs using several different languages togetherin the same ...

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    .NET question

    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?

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    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

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    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?

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    >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.

  5. #5
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >>All .NET languages use the same framework and class library.

    So, only OO languages would be used in .NET?

  6. #6
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    So, is the actual language changed, or just the way its used (ie. is C++ different from C++.NET)

  7. #7
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    >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.

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    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.

  9. #9
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >
    >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.

  10. #10
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    Does the STL work with .NET?

  11. #11
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    that i don't know.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  12. #12
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    Me neither. I would think it does. I find it strange that they can remove multiple inheritance and still call it C++.

  13. #13
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    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

  14. #14
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >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.

  15. #15
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by no-one
    >plus the STL is better than in MSVC++ 6.

    the STL was in MSVC!!!!!!
    I think he's talking about the MFC container classes.....

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. .NET Windows Application Question
    By obaid in forum C# Programming
    Replies: 1
    Last Post: 04-29-2008, 10:32 PM
  2. migrate from .Net 2.0 to .Net 3.0
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 07-25-2007, 04:07 AM
  3. MSVC++ .NET 2005 Express Question
    By cboard_member in forum Windows Programming
    Replies: 1
    Last Post: 12-08-2005, 07:04 AM
  4. .NET Question
    By gvector1 in forum C# Programming
    Replies: 1
    Last Post: 05-20-2003, 11:41 PM
  5. VS .NET & XP Pro Question
    By hk_mp5kpdw in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-08-2003, 12:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21