Windows 8 Developer Preview – Under the hood of COM

The first sample application started showing a COM exception while launching the designer.

IUnknown::Release, IUnknown::Release, IUnknown::Release, … stay tuned

IVisual2011Ptr visualInstance(CLSID_VS2011);
HRESULT res = visualInstance->get_IsSolidRock(&solidRock);
if (SUCCEEDED(res) && solidRock == VARIANT_TRUE)
    wcout << L"VS 2011 is solid rock!" << endl;
    if (FAILED(res))
        wcout << L"The error code " << res << L" is proudly presented by your interop developer of choice." << endl;
        wcout << L"VS 2011 is just a developer preview!" << endl;

COM Exception in Designer View

About Jan Tschada

Software engineer from Germany
This entry was posted in Common. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s