Results 1 to 7 of 7

Thread: Registering OCX files

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Halifax, NS Canada
    Posts
    30

    Post

    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???????



  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Post

    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Halifax, NS Canada
    Posts
    30

    Post

    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?




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

  4. #4
    Junior Member
    Join Date
    Jun 1999
    Location
    Papillion, NE, USA
    Posts
    21

    Post

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Halifax, NS Canada
    Posts
    30

    Post

    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?


  6. #6
    Junior Member
    Join Date
    Nov 1999
    Location
    Wellsburg, WV, USA
    Posts
    25

    Post

    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

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Halifax, NS Canada
    Posts
    30

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width