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
Become more proficient on the usage of statements to control the flow of execution through a C++/CLI application.
Discover (Rediscover?) an image-manipulating tool that's been around for ages, but is especially suited to working within the .NET framework.
The concepts of boxing and unboxing data might be second nature for many, but for newbies it's worth covering. And, the "old hands" may learn something new, as well.
Most developers face a grueling challenge to please their end users. We asked their top challenge is. With over 3,000 responses, the results are now available!