{"id":372,"date":"2008-07-22T08:59:48","date_gmt":"2008-07-22T03:29:48","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=372"},"modified":"2022-01-14T08:30:46","modified_gmt":"2022-01-14T03:00:46","slug":"fix-for-richtx32-ocx-component-error-when-running-a-program","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/fix-for-richtx32-ocx-component-error-when-running-a-program\/","title":{"rendered":"Fix for RICHTX32.OCX Component Error when running a Program"},"content":{"rendered":"<p>When you run an application built using (classic) Visual Basic 6.0, the following error message may occur, and the program terminates.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24149\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/07\/richtx32-ocx-error.png\" alt=\"richtx32.ocx error\" width=\"403\" height=\"147\" \/><\/p>\n<pre class=\"err\">Component 'RICHTX32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid.<\/pre>\n<p>(or)<\/p>\n<pre class=\"err\">Failed to load control 'RichTextBox' from RICHTX32.OCX<\/pre>\n<p>This happens if the program uses Rich TextBox ActiveX Control (RichTx32.ocx), but does not include the ActiveX file in the setup package. This runtime is <a href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/visualstudio\/visual-basic-6\/visual-basic-6-support-policy\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">not included in Windows<\/a> and is supposed to be distributed along with the program. And, RichTx32.ocx ActiveX Control is not included in VB6 run-time distribution package from Microsoft either.<!--more--><\/p>\n<h2>Download RichTx32.ocx<\/h2>\n<p>You may download it here: <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/07\/richtx32.zip\">RichTx32.zip<\/a>. Unzip the archive and extract the file <b>RichTx32.ocx<\/b> to one of these folders:<\/p>\n<ul>\n<li>On Windows 32-bit systems, copy RichTx32.ocx to <code>C:\\Windows\\System32<\/code><\/li>\n<li>On Windows 64-bit systems, copy RichTx32.ocx to <code>C:\\Windows\\SysWOW64<\/code><\/li>\n<\/ul>\n<div class=\"qt\">\n<h4>RICHTX32.OCX &#8211; File Information<\/h4>\n<ul>\n<li>Signing date: 7:57 PM 11\/25\/2013<\/li>\n<li>Publisher: Microsoft Corporation<\/li>\n<li>Company: Microsoft Corporation<\/li>\n<li>Description: RichTx32.OCX<\/li>\n<li>Product: RichText<\/li>\n<li>Prod version: 6.01.9839<\/li>\n<li>File version: 6.01.9839<\/li>\n<li>MachineType: <a href=\"https:\/\/www.winhelponline.com\/blog\/find-out-if-a-program-exe-file-is-32-bit-or-64-bit\/\">32-bit<\/a><\/li>\n<\/ul>\n<h4>Hash Checksum<\/h4>\n<ul>\n<li><a href=\"https:\/\/www.winhelponline.com\/blog\/how-to-get-file-hash-via-right-click-menu-windows\/\">MD5<\/a>: 14bb5cf93c7d69d019423c73c60aa856<\/li>\n<li>SHA1: 6454bb10992eefc59563a73729a8927c6383669b<\/li>\n<li>SHA256: 221b54ad16161b8ce71807b07559ab49f59dfff4cdf695e808d90bf8beaafcf5<\/li>\n<\/ul>\n<p>(<em>DLL Source: Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update January 2016.<\/em>)\n<\/div>\n<p>This file is also available from IBM&#8217;s servers. The link is provided below:<\/p>\n<pre>https:\/\/www.ibm.com\/support\/pages\/system\/files\/support\/swg\/rattech.nsf\/0\/d4e3feebe5a143ab85256e91003d256f\/$FILE\/richtx32.ocx<\/pre>\n<hr>\n<h3>Register the OCX<\/h3>\n<p>You may also need to register the RichTx32.ocx module using the following command from <a href=\"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/\">Command Prompt (admin)<\/a>.<\/p>\n<p><strong>For Windows 32-bit OS<\/strong><\/p>\n<pre>regsvr32.exe  %systemroot%\\system32\\RICHTX32.OCX<\/pre>\n<p><strong>For Windows 64-bit OS<\/strong><\/p>\n<pre>%system32\\syswow64\\regsvr32.exe  %systemroot%\\syswow64\\RICHTX32.OCX<\/pre>\n<p>You should see the message <b>DllRegisterServer in C:\\WINDOWS\\system32\\RICHTX32.OCX succeeded.<\/b> after running the above command.<\/p>\n<p><em>(Last updated on Jan 14, 2022.)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run an application built using (classic) Visual Basic 6.0, the following error message may occur, and the program terminates. Component &#8216;RICHTX32.OCX&#8217; or one of its dependencies not correctly registered: a file is missing or invalid. (or) Failed to load control &#8216;RichTextBox&#8217; from RICHTX32.OCX This happens if the program uses Rich TextBox ActiveX Control &#8230; <a title=\"Fix for RICHTX32.OCX Component Error when running a Program\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/fix-for-richtx32-ocx-component-error-when-running-a-program\/\" aria-label=\"Read more about Fix for RICHTX32.OCX Component Error when running a Program\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[191],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-windows","tag-error-messages"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":25473,"url":"https:\/\/www.winhelponline.com\/blog\/comdlg32-ocx-missing-invalid-dependencies-not-registered\/","url_meta":{"origin":372,"position":0},"title":"COMDLG32.OCX Missing or Dependencies not Registered","author":"Ramesh","date":"January 3, 2022","format":false,"excerpt":"The comdlg32.ocx module is used by classic Visual Basic programs. This ActiveX control is responsible for the functionality of common dialog boxes in your VB application. Common dialog boxes include the Open and Save As file dialog boxes; the Find and Replace editing dialog boxes; the Print, Print Setup, Page\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"comdlg32.ocx error 339 missing","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/comdlg32-ocx-error.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":25458,"url":"https:\/\/www.winhelponline.com\/blog\/comctl32-ocx-dependencies-not-registered-file-missing\/","url_meta":{"origin":372,"position":1},"title":"Component COMCTL32.OCX or dependencies not registered: file missing or invalid","author":"Ramesh","date":"January 2, 2022","format":false,"excerpt":"When you attempt to run a program created using Visual Basic (classic VB) on a Windows 11\/10 computer, the following error may occur: Run-time error '339': Component 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid If COMCTL32.OCX is missing from the Windows\\System32 or\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"comctl32.ocx extract using 7-zip","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/comctl32-ocx-extract.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/comctl32-ocx-extract.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/comctl32-ocx-extract.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/comctl32-ocx-extract.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":25439,"url":"https:\/\/www.winhelponline.com\/blog\/mscomctl-ocx-dependencies-not-registered-missing\/","url_meta":{"origin":372,"position":2},"title":"MSCOMCTL.OCX or dependencies not registered, file is missing","author":"Ramesh","date":"January 1, 2022","format":false,"excerpt":"When you attempt to run a program created using Visual Basic 6.0 or Visual FoxPro 6.0 on a Windows 11\/10 computer, the following error may occur: Component 'MSCOMCTL.OCX' or one of its dependencies not registered: a file is missing or invalid Let's see how to fix this error on any\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"vb6 common controls","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/vb6-common-controls.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":31487,"url":"https:\/\/www.winhelponline.com\/blog\/mscal-ocx-missing-not-registered\/","url_meta":{"origin":372,"position":3},"title":"Component MSCAL.OCX Missing or Invalid or not Registered","author":"Ramesh","date":"January 4, 2023","format":false,"excerpt":"When you install a legacy program that uses the Microsoft Office 2003\/2007's calendar control (i.e., date picker control) module MSCAL.OCX, you may receive the following error: Component 'MSCAL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid. Cause The above errors occur if the calendar\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"mscal.ocx missing or not registered","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/mscal-ocx-restore-cab.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/mscal-ocx-restore-cab.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/mscal-ocx-restore-cab.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":117,"url":"https:\/\/www.winhelponline.com\/blog\/register-dlls-elevated-using-the-context-menu\/","url_meta":{"origin":372,"position":4},"title":"Register and Unregister DLLs Elevated via Right-click Context Menu","author":"Ramesh","date":"March 25, 2008","format":false,"excerpt":"This post tells you how to add register and unregister commands to the right-click menu for DLL and OCX files in Windows Vista, 7, 8 and 10. To register a DLL or OCX file, you usually need to run regsvr32.exe from an elevated Command Prompt. Registering system DLLs from a\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"regsvr32 error 0x80004005","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/regsvr32-error-80004005.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26750,"url":"https:\/\/www.winhelponline.com\/blog\/copy-file-details-version-product-context-menu\/","url_meta":{"origin":372,"position":5},"title":"Copy Detailed File Info to Clipboard via Right-Click Menu","author":"Ramesh","date":"June 7, 2022","format":false,"excerpt":"The Details tab in the Properties sheet shows the file version, product name, copyright, and other details. However, Windows doesn't let you copy the information to the clipboard. In this article let's see how to copy the file info to the clipboard using PowerShell. You can also incorporate the command\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"copy file information, version, product via powershell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}