Learn how to convert an ordinary unmanaged class to a COM component, and then use that COM component from both unmanaged and managed code.
Latest cpp_managed Articles - Page 14
Chances are, if you are using C++ and moving to .NET, you won't want to rewrite all your existing C++ code. Kate begins a series of articles on the various ways you can reuse old C++ code in new Managed C++ projects.
So, what's the purpose of a Finalize method? That's a good question that Brent Rector addresses.
C++ templates are like a secret weapon for developers. Those who never got around to learning C++ because "it's really complicated" and "it has all kinds of funky features no one would ever use" have no idea what we can do with templates. Now to learn about templates and the dramatic improvements in Visual C++ .NET!
Be aware that boxing and unboxing values so that you can use the Base Class Libraries carries a performance cost.
Previously Kate showed how to use the ATL CImage class to dramatically simplify working with images in classic C++ applications. This time around, she creates the an application as a Managed C++ Windows application and uses System.Drawing.Image to do the heavy lifting.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
It's essential to know the differences in these libraries and use them correctly. This brief tutorial will guide you.
With facilities to search, copy, extract segments, and more, the array class can handle pretty much any task you need to perform with ease.
Learn about delegates, a type that represents a reference to physical methods with the same parameter list and return type.
If you have written solid code, you have accomplished one half of the objective. Solid code is the protagonist, or hero, of our story, but testing is the more sedate side kick that often saves the day after the hubris of the hero has almost certainly lead to calamity.