



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Alan Sussman December 4, 2001
CMCS 433, Fall 2001 - Alan Sussman 2
CMCS 433, Fall 2001 - Alan Sussman 3
CMCS 433, Fall 2001 - Alan Sussman 4
CMCS 433, Fall 2001 - Alan Sussman 5
Client IStream (^) Method 1 Method 2 Method 3 Method 4
CMCS 433, Fall 2001 - Alan Sussman 6
CMCS 433, Fall 2001 - Alan Sussman 7
Client IStream^ Method 1 Method 2 Method 3 Method 4 IPrint (^) Method 1 Method 2 Method 3 Method 4 (^) CMCS 433, Fall 2001 - Alan Sussman 8
CMCS 433, Fall 2001 - Alan Sussman 9
CMCS 433, Fall 2001 - Alan Sussman 10
CMCS 433, Fall 2001 - Alan Sussman 11
CMCS 433, Fall 2001 - Alan Sussman 12
CMCS 433, Fall 2001 - Alan Sussman 19
STDMETHODIMP QueryInterface(const IID& iid, void **ppv) { if (iid == IID_IUnknown || iid == IID_IFoo) ppv = static_cast< Foo>(this); else if ( iid == IID_IBar) *ppv = static_cast<Bar *>(this); else { *ppv = null; return E_NOINTERFACE; } reinterpret_cast<IUnknown >(ppv)->AddRef(); return S_OK; }
CMCS 433, Fall 2001 - Alan Sussman 20
CMCS 433, Fall 2001 - Alan Sussman 21
CMCS 433, Fall 2001 - Alan Sussman 22
CMCS 433, Fall 2001 - Alan Sussman 23
CMCS 433, Fall 2001 - Alan Sussman 24
CMCS 433, Fall 2001 - Alan Sussman 25
CMCS 433, Fall 2001 - Alan Sussman 26
CMCS 433, Fall 2001 - Alan Sussman 27
IBar
Bar
Foo
IUnknown
IFoo
IUnknown
inner
CMCS 433, Fall 2001 - Alan Sussman 28
Bar
Foo
IUnknown
IFoo
outer
IUnknown
IBar
inner
CMCS 433, Fall 2001 - Alan Sussman 29