Select the product you need help with
You receive a "System Error &H80004005" error message from a Visual Basic 6.0 application when an MFC ActiveX control subclasses any of the window classes implemented by Comctl32.dllArticle ID: 223152 - View products that this article applies to. This article was previously published under Q223152 On This PageSYMPTOMS An MFC ActiveX control that subclasses any of the window
classes implemented by Comctl32.dll causes the following error to be thrown
from a Visual Basic 6.0 .exe. "System Error
&H80004005 (-2147467259). Unspecified error" This problem occurs only when you build an .exe from Visual Basic 6.0 and run it from outside the Visual Basic development environment. CAUSE Microsoft Visual Basic executables do not initialize the
common control library (Comctl32.dll) by default, resulting in the CreateEx
call failing in COleControl::CreateControlWindow. Calling GetLastError() gives
0x0000057F - Cannot find window class, which indicates the common control
library needs to be explicitly initialized. RESOLUTION Inside the InitInstance of your ActiveX control, make a
call to: Instead of calling InitCommonControls from the control's code, you can also call it directly from the Visual Basic client application:
STATUS This behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
PropertiesArticle ID: 223152 - Last Review: November 21, 2006 - Revision: 3.1 APPLIES TO
| Article Translations
|


Back to the top








