One example of something C# can do that C++ can't is reflection. I've used it so many times now that I find C++ a pain to program in (and there are many other reasons too).
For instance, I created a debugging class that, when added to any C# project, allows you to do "realtime" debugging. It creates a tree of all objects in your process much like you can do with the current Watch window in VS. But the Watch window in VS only works if your app is stopped and is broken into the debugger. A big limitation.
So, the way this debugging class works is that you for instance add a special button or secret key press somewhere in your app. Once this has been clicked or pressed, you instantiate this special debug class and pass it any object. This object would usually be your main class in the application. It then displays a window that contains a tree that you can drill down into and look at each and every object in your app. It updates every 2 seconds (configurable), so what you see is up to date and your app is running at full speed. So you can interact with your app and see the values change in realtime. This is a very useful debugging tool and I use it on every project I work on.
Try that using C++...
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.