PDA

Click to See Complete Forum and Search --> : Registering OCX files


DavidRidgway
Dec 6th, 1999, 02:06 AM
While installing a VB program I get the error message:

"Cannot load or register CRYSTL32.OCX"

At the end of the installation I get the message:

"Setup was completed successfully"

HOWEVER

When accessing the program, I get the error message:

"Error # 31037"
"Error Loading From File"

I have tried registering the OCX file using the Regsvr32 command from the Start/Run option but that does not correct the problem

Can anyone help me please???????

johnpc
Dec 6th, 1999, 02:40 AM
Did you make the setup program and are trying to transfer to another machine? If so
did you add the file to the setup list. If you received this program from another source
check to see if the ocx is listed in the setup list, it should be, next check the version number against the ocx on the machine you are trying to transfer to against the version listed in the VB IDE, use explorer to get the files date.
Finally try unregistering the ocx and then re-registering it.

DavidRidgway
Dec 6th, 1999, 02:57 AM
Thank you John.......however

I did create setup files and the OCX files are there. I have tried to replace them with other versions and it still does not work. I even upgraded to a newer version of Regxvr32.
I can't even uninstall and reinstall it. The command I am using to uninstall is:

Regxvr32 C:\Windows\System\crystl32.ocx /u

Is this the correct syntax?




------------------

jim
Dec 6th, 1999, 03:08 AM
Try the following:

Search for copies of Crystl32.OCA on the target system's drive. Delete any found and then retry registering the OCX.

------------------------

If this fails then Install DCOM onto the target machine and retry the install.

DavidRidgway
Dec 6th, 1999, 09:41 PM
Thanks Jim, I tried that and the install failed. You suggested installing DCOM on the target machine. I have been able to determine that DCOM means Distributed Component Object Model, but other than that I have no idea of what it is or where to get it.

Can you suggest something to me please?

dmuir
Dec 6th, 1999, 10:24 PM
You will be able to find DCOM on the VB6 CD or on Microsoft's web site. This will install data related components to the target machine.

One way to get the ocx file to register is by manually editing the setup.lst file that is made by the Package and Deployment Wizard.

1. Open up Setup.lst in notepad.exe and scroll down untill you find the ocx you are looking for.

2. Take out the line that says:
$(DLLSelfRegister)
Be absolutly certain not to take out any commas. Only take out this line for the one ocx. Don't take all of them out.

Good Luck,
dmuir

DavidRidgway
Dec 7th, 1999, 12:41 AM
Can I ask what the Package and Development Wizard is and where I can get it?

Sorry for so many questions on the same topic.