C++ - C#

This is a discussion on C++ - C# within the C++ Programming forums, part of the General Programming Boards category; would my C++ code still be compatible in a C# compiler?...

  1. #1
    Unregistered
    Guest

    C++ - C#

    would my C++ code still be compatible in a C# compiler?

  2. #2
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    No, not at all, however the unmanaged C++ compiler that comes with VS.net will work. Sounds like you have a lot a reading to do.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    no need to be rude, troll
    always looking, make an offer. get me out of this place.

  4. #4
    some dude
    Guest
    Originally posted by Troll_King
    No, not at all, however the unmanaged C++ compiler that comes with VS.net will work. Sounds like you have a lot a reading to do.
    what do you mean by "unmanaged"?

  5. #5
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Originally posted by some dude


    what do you mean by "unmanaged"?
    It's just the term Microsoft is using to describe code that does not target the .net framework. In time Microsoft will cut off the ability to write unmanaged code on their operating systems and programmers will be forced to use the .net framework.

  6. #6
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    What microsoft have said is that they want to change the api to be managed so aplications can be better controled. I don't think that will change that much for programers. It's not like you have a whole lot of access to anything in win NT anyway.

    Unmanaged code also don't use the garbage collector so you better keep track of those pointers.

  7. #7
    Unregistered
    Guest
    uh, ok, thanks

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    In unmanaged code you have to make sure that all memory get returned to the OS while the program is runing. If you are using the .NET frame work (managed code)your code will get managed by that framework (Garbage collection) so that you don't get a memory leak. Although it comes to the cost of performance. C# is a special language designed to work well with the .NET framwork and it looks alitle bit like C++ meets VB and mates with Java. C# is only compiling to the .NET framework while you with C++ have the option between managed(safe??) or unmanaged(fast) code.
    Last edited by Barjor; 07-26-2002 at 02:03 PM.

Popular pages Recent additions subscribe to a feed

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