Microsoft KB Archive/187976

= PRB: OLE Error 0x80040154 "Class not Registered" =

Article ID: Q187976

The information in this article applies to:


 * Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS
Attempting to run a form that uses the Rich TextBox control results in the following error message:

OLE Error Code 0x80040154. Class not registered. The registry entries, classid and GUIDs, are correct. Additionally, efforts to unregister and re-register the Rich TextBox control do not make a difference.

CAUSE
The Rich TextBox control used in the form requires a more recent version of the Oleaut32.dll file.

RESOLUTION
You need to obtain and run the Oadist.exe file. This file is available from the Microsoft Software Library and is included in the RegClean 4.1a download file.

NOTE: The Oadist.exe setup program does not work on Windows NT 3.51. If you need to install the updated Automation system files on Windows NT 3.51, you should download the Oadist2z.exe file.

STATUS
This behavior is by design.

MORE INFORMATION
The ActiveX control is Richtx32.ocx version 5.01.4319. The exact error message that occurs follows:

OLE Error Code 0x80040154. Class Not Registered. OLE Object is Being Ignored. Record # 29 and record # 65. The newer version 2.20.4054, or later, of the Oleaut32.dll is needed (because of a call it makes to examine type library information) for the Rich TextBox control version 5.01.4319 to work properly.

The original release of the Windows 95 operating system has an older version of Oleaut32.dll that works with an older Rich TextBox control.

Steps to Reproduce Behavior
1. Obtain the original Windows 95 Oleaut32.dll file version and copy the

file to the Windows System folder. 2. Obtain version 5.01.4319, or later, of the Rich TextBox control.

3. Create a Visual FoxPro form and add a Rich TextBox Control.

4. Run the form and the error occurs.