The information in this article applies to:
SYMPTOMSMicrosoft Developer Studio with Visual C++, versions 4.0 and 4.1, reports the error message: Make sure the control contains a valid type library" when attempting to import an ActiveX control (OLE control). In Visual C++, version 4.2, the error states: In Visual C++, versions 5.0 and 6.0, the error states:
CAUSE
By default, MFC applications use ID binding to call methods in ActiveX
controls. Because of this behavior, Developer Studio checks to make sure
that the version of the type library is the same as that of the control. If
the versions are not the same, Developer Studio reports an error. Q138138 Three Binding Types (Late, ID, Early) Possible in VB for Apps RESOLUTION
Make sure that the version of the ActiveX control matches the version of
its type library.
In the same project, the version for the type library is represented by the
version keyword in the .odl file for the OLE control:
STATUSThis behavior is by design. MORE INFORMATIONAn updated version of this control would have version identifiers similar to the following:
Additional query words: import control MfcOLE CDKIss VWBIss
Keywords : kberrmsg kbole kbCtrl kbide kbMFC kbVC400 kbVC410 kbVC500 kbVC600 kbGrpDSTools |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |