BUG: Error Occurs When Placing an MFC-Based Control on a Form
ID: Q183695
|
The information in this article applies to:
-
Microsoft Windows CE Toolkit for Visual Basic 6.0
-
Microsoft Windows CE Toolkit for Visual Basic 5.0
SYMPTOMS
After removing an MFC-based ActiveX control from the Visual Basic Toolbox, returning it to the Toolbox and placing the control on a form, the
following error message may result:
Class not registered.
Looking for object with CLSID: {<CLASS ID>}
RESOLUTION
If you exit and reopen Visual Basic, you can place the control on a form.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
- Register an MFC-based ActiveX control in emulation using RegSvrCE.EXE.
- Create a new Windows CE (HPC) Project in Visual Basic.
- In Visual Basic 5.0, select Control Manager from the Windows CE menu and then select the MFC-based control from the list of controls. In VBCE 6.0, you must create a setup for the control in VCCE.
- Visual Basic 5.0 select Synchronize from the Emulation menu to register the control for design-time use.
- Load this control into the Toolbox by selecting Components from the
Project menu and selecting the control.
- Draw the control on the default form (Form1).
- Delete the control from Form1.
- Remove this control from the Toolbox by selecting Components from
Project menu and deselecting the control.
- Add the control back to Toolbox (see step 5).
- Draw the control on Form1.
RESULT: The error message appears.
Additional query words:
wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp500bug kbVBp600bug kbWinCE100bug kbGrpVB
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbbug