When you run an application which was created in Visual Basic 6.0, the following error message may occur and the program terminates.

Component ‘RICHTX32.OCX’ or one of its dependencies not correctly registered: a file is missing or invalid.

This happens if the program uses Rich TextBox ActiveX Control (RichTx32.ocx), but does not include the ActiveX file in the setup package.

To resolve the problem, download RichTx32.zip. Unzip the archive and extract the file RichTx32.ocx to the Windows\System32 folder.

Note that the VB6 run-time distribution package from Microsoft does not include the RichTx32.ocx ActiveX Control.

Registering the OCX file

If you still receive the error, register the RichTx32.ocx module using the following command (from Start, Run dialog):

regsvr32.exe %systemroot%\system32\RICHTX32.OCX

You should see the message DllRegisterServer in C:\WINDOWS\system32\RICHTX32.OCX succeeded. after running the above command.

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

12 Comments

  1. Mikael
    said this on Wednesday, August 4th 2010 1:24 am

    it cant register “the module cant load”

  2. My Name
    said this on Wednesday, June 30th 2010 5:07 pm

    Can’t register the file.

    “C:\Windows\system32\RICHT32.OCX” is not an executable file and no registration helper is registered for this file type.

Leave a Reply