One of the things that C# (and VB.NET) programmers have to live with is non-deterministic destruction of their objects. The garbage collector was introduced in .NET to take care of memory leaks and remove the need for manual memory management. It does this by keeping track of references, and as soon...
Every so often someone in microsoft.public.dotnet.languages.vc asks about the future of C++, or if he should learn C# or VB.NET instead of C++. Some people are also confused if using C++ means they carry around C++ legacy code if they want to write pure .NET apps. With C++ you can write pure .NET apps...
My apologies to Steve Maguire for "borrowing" a title. I constantly see code, examples, and advice that perpetuate unsafe coding practices. As programmers we have the habit of getting something to a "working" state and call it "done". This is especially true in processes...
One question that comes up from time to time in the C++ newsgroups is that functions or constants that exist in a C++/CLI class library are not accessible in a C# or VB.NET project. The reason for this is nearly always that that constants or functions are defined outside of a class scope. Consider the...
Learning C# if you already know C++ is relatively easy. The syntax is similar, and the semantics are definitely a lot easier to understand. Since C# looks like C++, most of the concepts are easy to learn, but here and there are a few details that might cause problems later on. On of these things is the...