FIX: The type description cannot be retrieved if the ITypeInfo::GetRefTypeInfo method for the OLE_COLOR property is used in Microsoft Windows CE .NET 4.2 (887825)



The information in this article applies to:

  • Microsoft Windows CE .NET 4.2

SYMPTOMS

The type description cannot be retrieved if the ITypeInfo::GetRefTypeInfo method for the OLE_COLOR property is used. An OLE container that uses an ActiveX control cannot retrieve the type description. In this case, the ActiveX control is created by using Microsoft Foundation Classes (MFC).

CAUSE

ActiveX controls that are created by using an MFC wizard reference the STDTYPE_TLB macro. The STDTYPE_TLB macro is incorrectly defined in the Olectl.h file.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 4.2 Core OS QFE 887825. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:

837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you install this update, you must perform a clean build of the whole platform. To clean the platform, click Clean on the Build menu. To build the platform, click Build Platform on the Build menu. You do not have to restart your computer after you apply this update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this package has the file attributes (or later) that are listed in the following table.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------

   19-Nov-2004  19:42  4.2.4.1119        523,000  Wincepb42-041119-kb887825-common.exe  
The English version of this update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time                      Size    File name
   --------------------------------------------------------------

   Path: Public\Common\Sdk\Inc
   17-Nov-2004  19:36                     20,948  Olectl.h

WORKAROUND

To work around this problem, modify the .odl file that is created by the MFC ActiveX Wizard. When you modify the .odl file, you want to reference the Oleaut32.dll file instead of the STDTYPE_TLB macro. See the following code example.

importlib("oleaut32.dll");

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

After you apply this update, create a new platform SDK. Redistribute the new platform SDK.

Modification Type:MinorLast Reviewed:5/27/2005
Keywords:kbBug kbfix kbQFE KB887825 kbAudOEM kbAudDeveloper