You cannot dynamically create an instance of a redistributable ActiveX control supplied with Visual C++ (151804)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q151804 SYMPTOMS Attempting to dynamically create an instance of one of the
redistributable ActiveX controls supplied with Visual C++ fails on machines
where Visual C++ has not been installed. However, creating an instance of the
same control on a dialog box succeeds. CAUSE The redistributable controls supplied with Visual C++ are
licensed. RESOLUTION Specify a valid License string when dynamically creating
the control. STATUS This behavior is by design. REFERENCES For more information, please see:
The Visual C++
documentation on the CWnd::CreateControl method.
The Visual C++
documentation on licensing an OLE control.
The Visual C++
documentation on using controls in a non-dialog container.
The OLE
Programmer's Reference documentation on the IClassFactory2 interface.
Modification Type: | Major | Last Reviewed: | 9/2/2005 |
---|
Keywords: | kbQFE kbContainer kbCtrl kbLicensing kbprb KB151804 kbAudDeveloper |
---|
|