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

  1. Register an MFC-based ActiveX control in emulation using RegSvrCE.EXE.


  2. Create a new Windows CE (HPC) Project in Visual Basic.


  3. 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.


  4. Visual Basic 5.0 select Synchronize from the Emulation menu to register the control for design-time use.


  5. Load this control into the Toolbox by selecting Components from the Project menu and selecting the control.


  6. Draw the control on the default form (Form1).


  7. Delete the control from Form1.


  8. Remove this control from the Toolbox by selecting Components from Project menu and deselecting the control.


  9. Add the control back to Toolbox (see step 5).


  10. 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


Last Reviewed: June 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.