Design
ud698.txt
Associated article: Undocumented Corner
Tags: Design
Published source code accompanying the column by George Shepherd and Scot Wingo in which they take a look at how two COM objects can set up communication scheme where the object calls back to the client when the object is written using the Active Template Library (ATL).
Undocumented Corner Column
by George Shepherd and Scot Wingo
Listing One
ISomeInterface* pSomeInterface = NULL;
HRESULT hr;
hr = CoCreateInstance(CLSID_SomeObject, NULL, CLSCTX_ALL,
IID_ISomeInterface, *pSomeInterface);
if(SUCCEEDED(hr)) {
pSomeInterface->Function1();
pSomeInterface->Function2();
pSomeInterface->Release();
}
Listing Two
...


