Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
GoingNative Live at BUILD: Herb Sutter, Joanna Mason, Tony Goodhew
Oct 11, 2011 at 7:31 AMThe #import directive supported by MSVC compilers for well over a decade does exactly that for COM components. It generates a quite easy to use C++/COM binding for a COM component. It generates smart pointers for the interfaces (no more messing with AddRef/Release), throws exceptions on bad HRESULTs, makes accessing properties as easy as accessing member of a struct, and takes a way a lot of the pain of dealing with BSTRs and variants. It makes dealing with COM from a C++ programmer perspective quite natural and painless. I really wonder why Microsoft opted for creating yet another C++ dialect.