COM example

In the following two lines of C code, the GetDocumentation call generates a COM interface error because the first parameter to GetDocumentation in the ITypeLib interface is 999, which is not a member of the type library.

LoadTypeLib(sztlib, &g_ptlib);

ptypeinfo->GetDocumentation(999, &bstrName, NULL, NULL,NULL);

(C) Copyright IBM Corporation 1992, 2010.