To use an ActiveX control object in an MFC project, first use the "Project | Add to Project | Components and Controls" menu option in Developer Studio. This allows MFC to generate a .CPP and .H file for a "wrapper" class, which interfaces to the functions of the object. The class is derived from CWnd, which provides a GetControlUnknown function, which returns a pointer to the IUnknown interface.