Every CCmdTarget now answers IConnectionPointContainer after
EnableConnections, from a connection map of CConnectionPoint members
(BEGIN_CONNECTION_PART, CONNECTION_IID), plus GetConnectionHook and
GetExtraConnectionPoints. AfxConnectionAdvise and AfxConnectionUnadvise
connect sinks with or without a reference.
DECLARE_OLETYPELIB and IMPLEMENT_OLETYPELIB give a class's IDispatch type
information from a registered type library, cached in CTypeLibCache.
AfxOleRegisterTypeLib and AfxOleUnregisterTypeLib register and remove
libraries.
conntest covers both, with a type library it writes itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs