Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Friday, May 20, 2011

"Component COMCTL32.OCX

...  or one of its dependencies not correctly registered: a file is missing or invalid"
Start a command prompt as Administrator
REGSVR32 %Systemroot%\System32\comdlg32.ocx
Restart Windows and then launch your application.
Source
Advance Text is a popular Pokemon ROM hacking program. In some cases, after it is downloaded it is unable to open for a particular reason. I'm addressing that reason and how to fix it.
When you try to open the program, you get an error message:
Component 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid.
There are two other possible components:
COMDLG32.OCX
GRAPH32.OCX
The solution for the GRAPH32.OCX is a bit different, so I won't cover it now.
If you are having any other trouble, this guide will not be able to help you. Sorry.
If the component mentioned in the error is COMCTL32.OCX, go to this site to download the file:
http://www.ascentive.com/support/new/support_dll.phtml?dllname=COMCTL32.OCX
If the component mentioned in the error is COMDLG32.OCX, go to this site to download the file:
http://www.ascentive.com/support/new/support_dll.phtml?dllname=COMDLG32.OCX
You can also search for a different download if you want to. This is not the only source for the file. This is one that was found virus free by my anti-virus scanners. This is the site I used.
When you find the page, right click on the download link and click, "Save Target As." In Google Chrome you have to click, "Save Link As."
When it opens the save menu, go to the Desktop to save it so it's easy to find later. Where it says, "Save as Type" in the save menu, change it from
HTML Document
to
All Files.
Before you save it, clear EVERYTHING in the File Name box. Enter the exact name of the component, including the .OCX part. It will look like this:
File name: COMCTL32.OCX
Save as type: All Files
or this:
File name: COMDLG32.OCX
Save as type: All Files
depending on the component you're saving.
Open this file path for COMCTL32.OCX:
C:\Windows\System32
Open this file path for COMDLG32.OCX:
C:\Windows\SysWOW64
Drag the OCX file that you saved on the desktop into the folder. Now...
If the error message mentioned COMCTL32.OCX, then there will be a file titled COMCTL32.OCX in the C:\Windows\System32 folder. You just put it there.
If the error message mentioned COMDLG32.OCX, then there will be a file titled COMDLG32.OCX in the C:\Windows\SysWOW64 folder. You just put it there.
You're almost done. If you're not the main user on the computer (a.k.a. the administrator), go find the administrator in your home. You will need him/her to allow Administrator access to Command Prompt.
Start Command Prompt.
To do this in Windows Vista, open the Start Menu and type:
cmd
Right-click on the program and click "Run as Administrator"
For any other Operating System, go on Google to find it. Search something like:
Windows XP run command prompt
There should be some sites that explain how to open it.
On my laptop, the Command Prompt screen says stuff about Microsoft Windows Version, some copyright stuff, and a system32 file path. Ignore all of that.
For COMCTL32.OCX, type in the following:
REGSVR32 C:\Windows\System32\COMCTL32.OCX
For COMDLG32.OCX, type in the following:
REGSVR32 C:\Windows\sysWOW64\COMDLG32.OCX
Press the Enter key on your keyboard. If it works, you will get a popup message that says:
DllRegisterServer in
C:\Windows\System32\COMCTL32.OCX succeeded.
This means it worked. The success message for COMDLG32.OCX is very similar, but I can't do it on my computer so I don't know exactly what it says. If it gets rejected, check your typing and try again. You most likely skipped a slash mark or spelled something wrong. Advance Text should now be able to open normally.
Warning : Command Prompt is a powerful program on any computer. Some commands can do serious damage to your computer. A misspell in this command will most likely have no repercussions. However, I will not take any responsibility for anything that happens to your computer as a result of you following these instructions.
This is merely a disclaimer so you can't come after me if you do something to your computer.
Feel free to leave any responses you want, including whether or not it worked for you. If it didn't work, let me know which part you had trouble with and I'll see if I can help.
==================
hacer un archivo en batch para esto
@ECHO OFF
copy %1\comctl32.ocx C:\windows\system32\comctl32.ocx
copy %1\MBPrgBar.ocx C:\windows\system32\MBPrgBar.ocx
regsvr32 MBPrgBar.ocx
regsvr32 COMCTL32.OCX
pause>nul 
==================
Replacing COMCTL32.OCX:
SOLUTION:
In order to fix this problem, you'll need to set up and register the library file.
The easiest way to do that is to download the following file that will install and register most of the Library Files used by Ascentive's products (if you still see the error, try the manual instructions below).
Please use the following URL to download a 5.66 MB (5,935,720 bytes) Ascentive Library Installer.
http://www.ascentive.com/support/new/libraryfiles.exe Right click on the above link and select "Save target as..."

Alternatively, you may download just the file you are missing and manually register it yourself. Here's how to do it:
  1. Download COMCTL32.OCX (right click the text on the left and save to your Desktop).
  2. Back up your current copy of COMCTL32.OCX and copy the new version to the same file location. This file should be located in the WINDOWS\SYSTEM directory on your C: drive (for Windows NT and 2000: \WINNT\system32).
  3. Using your mouse, click on the "Start" button and then click on "Run".
  4. According to your Operating System, type the following command to register this library file:
    Windows 95, 98, or Me:
    regsvr32 \windows\system\COMCTL32.OCX

    Windows NT or 2000:
    regsvr32 \WINNT\system32\COMCTL32.OCX

    Windows XP:
    regsvr32 \windows\system32\COMCTL32.OCX
  5. You should see a message saying "DllRegisterServer ... succeeded"
If you are getting an error telling you that the file is missing, then you are not typing the command in correctly. You will need to type it in *exactly* as as shown above for your operating system.
* Please note that there is a SPACE after "regsvr32" and before the rest of the command.
You should probably copy and paste the command so that you are unable to mistype it.
Download COMCTL32.OCX now (right-click on the link and select "Save Target as...").

No comments: