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.

Bookmark this Page!

BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

8 Responses to “Fix for RICHTX32.OCX Component Error When Running a Program” Subscribe to comments!

  1. yo
    said this on Monday, July 27th 2009 11:14 pm

    for vista just press start\all programs\ accessories\right click command prompt \ run as adminstrator then paste this line
    regsvr32.exe %systemroot%\system32\RICHTX32.OCX
    and press enter

  2. Lyle Allen
    said this on Thursday, March 12th 2009 4:34 am

    Ramesh,

    Your version is older than the one dated 3/9/2004 (version # 6.1.97.82). I don’t know the differences.

    Lyle

  3. Ross
    said this on Saturday, February 21st 2009 11:10 am

    @Ramesh in Vista running the Admin command prompt did the trick thanks a lot!
    @Chris To run the command prompt with admin rights in vista just Type command prompt in the search bar in the start menu then right click on command prompt and select “Run as Administrator”

  4. chrisx2009
    said this on Saturday, February 21st 2009 2:03 am

    I, too, have had this problem in Vista, and I have attempted to solve this using the regsvr32.exe command in the Command Prompt program, however, I still get the same message as Ross received, where the problem hasn’t been solved.

    Is there any other ideas to try to solve this?

    Thanks ^_^

  5. said this on Sunday, February 8th 2009 10:41 am

    Mention which OS you’re using, Ross. If using Vista, make sure that you run the command from an Admin Command Prompt.

  6. Ross
    said this on Sunday, February 8th 2009 4:54 am

    Hi I really appreciate the Information. I tried to run the “regsvr32.exe %systemroot%\system32\RICHTX32.OCX” command but I get the following error. “The module “c:\windows\system32\richtx32.ocx” was loaded but the call to dllregisterserver failed with error code 0×8002801c.” Any Ideas about what I can try?
    Thanks

  7. janaka
    said this on Saturday, November 29th 2008 6:18 pm

    it was success. thanks

  8. said this on Thursday, November 20th 2008 3:02 am

    We have an old vb application that was giving this error message for some of us on newer machines. (odd, since it had been working and all of a sudden stopped.) We followed the steps above and now it works.

    Thanks!

Leave a Reply