managed extensions

This is a discussion on managed extensions within the A Brief History of Cprogramming.com forums, part of the Community Boards category; ok just finished an entry for the solitaire contest. and started reading about managed extensions. as far as i can ...

  1. #1
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299

    managed extensions

    ok just finished an entry for the solitaire contest. and started reading about managed extensions. as far as i can tell there is not much different.
    here is my question to anyone who has used them.

    where they any help or hard to use? basicly worth learning. bet porting is a pain.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    the solitaire contest? is there a contest here? *hasn't seen notice of one* What contest?
    Away.

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Managed Extensions ( aka C++.NET ) are a real PITA. You can't avoid them for wrapper DLLs that bring legacy code to the .NET Platform, but other than that, I would really recommend to use C# for managed development. It's way clearer, easier and with almost the same syntax. And as both is managed, there is no recognizable speed gain between C# and C++.NET. If you are out for executable speed at all costs, you don't use managed code anyway, neither C# nor managed extensions.

    Edit:

    C++.NET has macros, C# has not. In some rare instances it's more usefull to have macros with a language that is hard, than not having them with an easy language. But so far in a project of well over 100 classes, it happened once that I chose macros over ease of use.
    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.

  4. #4
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Originally posted by blackrat364
    the solitaire contest? is there a contest here? *hasn't seen notice of one* What contest?
    http://contests.cprogramming.com/

    legacy code? no clue

    as far as c#... i know thothing about it.
    /*TODO run spellcheck */ //in every cpp file i write
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    where they any help or hard to use?
    basicly worth learning ?
    bet porting is a pain.
    They are hard to use, but if you have legacy code ( old plain C/C++ code ) that needs to be called from another .NET language, it's way easier to write a managed C++ wrapper for that code and let all other .NET assemblies call that. So only one instance has to convert managed to unmanaged and types into similar types in .NET.
    Worth learning if you need to do the above, not worth learning if C# can solve your problem ( i.e. you want to code .NET apps or games ).
    I would never port anything from plain C/C++ with MFC or another windows library to managed extensions. If you need .NET, rewrite it in C#. This will save a lot of time now, another lot later and you won't be frustrated by C++.NET
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. passing params between managed c++ and unmanaged c++
    By cechen in forum C++ Programming
    Replies: 11
    Last Post: 02-03-2009, 08:46 AM
  2. Managed Vector
    By Coding in forum C# Programming
    Replies: 2
    Last Post: 05-19-2008, 08:15 PM
  3. Managed C++ for Game Programming?
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 07-10-2006, 01:33 PM
  4. File Extensions
    By Polymorphic OOP in forum C++ Programming
    Replies: 2
    Last Post: 01-29-2003, 05:43 PM

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