.NET
ud1297.txt
Associated article: ATL and Dual Interfaces
Tags: .NET
Published source code accompanying the column by George Shepherd and Scot Wingo in which they examine Microsoft's Active Template Library which provides template implementations of most of the most common COM idioms.
Undocumented Corner
by George Shepherd and Scot Wingo
Listing One
struct ISomeInterface : public IUnknown {
HRESULT SomeFunction();
HRESULT AnotherFunction();
};
Listing Two
void UseSomeInterface(ISomeInterface* pSomeInterface) {
pSomeInterface->SomeFunction();
pSomeInterface->AnotherFunction();
}
Listing Three
interface IDispatch : public IUnknown {
HRESULT GetTypeInfoCount(UINT FAR* ...


