Microsoft KB Archive/221083

= BUG: Can't Insert CE ActiveX Control onto a Dialog Box in the Resource Editor =

Article ID: 221083

Article Last Modified on 12/8/2003

-

APPLIES TO

 Microsoft Windows CE Embedded Toolkit for Visual C++ 5.0 Microsoft ActiveX Template Library 2.1, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition  Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 5.0 Professional Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q221083

<div class="symptoms_section">

SYMPTOMS
Inserting a WCE ActiveX control onto a dialog box in the Resource Editor causes the following error:

The ActiveX control {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} is not registered on this computer. Register control and try again.

<div class="cause_section">

CAUSE
The Resource Editor is looking for a desktop (x86) version of the control.

<div class="resolution_section">

RESOLUTION
Right-click the dialog box in the Resource Editor and select the option Insert WCE ActiveX Control. Select the control and it will be inserted onto the dialog box. This resolution still causes the same error message to appear when you open the dialog box in the Resource Editor, but the message is harmless and can be ignored.

To avoid the error message altogether, you can build a desktop version of the control and insert this version instead of the WCE version. You'll need to create a Win32 build configuration:
 * 1) From the Build menu, click Configurations.
 * 2) Click Win32 (WCE x86em) Release.
 * 3) Click Add.
 * 4) Select Win32 from the Platform drop-down list.
 * 5) Click OK to create the new configuration.

Select the Win32 Release configuration and rebuild the control. You also need to register it by clicking Register Control from the Tools menu. To insert the desktop version of the control, just select it from the list of Registered ActiveX Controls instead of Registered WCE ActiveX Controls.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) From the Project menu, click Add To Project, then Components and Controls.
 * 2) Select the control under Registered WCE ActiveX Controls.
 * 3) Select the control in the Controls toolbar.
 * 4) Click the dialog box to insert the control.

<div class="references_section">