crystl32.ocx error-VBForums
Results 1 to 4 of 4

Thread: crystl32.ocx error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2008
    Posts
    162

    crystl32.ocx error

    i have developed and packaged a vb application that uses crystal reports. it is working fine on the developer machine but when i try to install the program on another machine that does not have crystal report or vb6 i get the following error:
    An error occurred while registering the file 'C:\WINDOWS\system32\crystl32.ocx'. how can i resolve this. i have a demo tomorrow morning.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    37,021

    Re: crystl32.ocx error

    Thread moved to Application Deployment forum, which is for questions about installing/distributing your software

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,855

    Re: crystl32.ocx error

    I found the next:

    The most common reason the Cryst32.ocx will not register is that it is missing one or more dependencies.
    To register the crystl32.ocx make sure the following dependencies are present on your machine, then the OCX will register.

    crystl32.ocx Dependencies
    ADVAPI32.DLL
    COMCTL32.DLL
    COMDLG32.DLL
    CRPE32.DLL
    GDI32.DLL
    IMPLODE.DLL
    MFC42.DLL
    MSVCRT.DLL
    MSVCRT20.DLL
    OLE32.DLL
    OLEAUT32.DLL
    OLEDLG.DLL
    OLEPRO32.DLL
    USER32.DLL
    VERSION.DLL

    Please note: while all of these files need to be present in order to successfully register the OCX, some files are system files and should not be distributed.
    Another item to check is that the version number of each dll on the client matches what is on your development machine (or at least matches what is on another client machine where the app does work).

    I recommend using EXTREME CAUTION when moving dlls between a machine with one OS to another with a different one. Regardless of the machines' OS, if you choose to copy dlls, please make sure to back up the old ones in case something goes awry.

    Please note that although the crystl32.ocx file can reside anywhere on your machine (as it is a registered file), its dependencies must reside in the system path.Finally, I would suggest downloading the Dependendency Walker utility from the following link to help troubleshoot your issue:
    http://community.seagatesoftware.com...es/depends.zip

    You can point this utility to Crystl32.ocx on the client machine to determine which of its dependencies the OCX is having issues with.
    Working files show up in green or cyan, while non-working files show up in yellow, orange, or red.
    I am sure that you will find this utility extremely helpful.

    To manually register the OCX after you have ensured that all the dependencies are present, you will need to select :
    Start | Run and type in something like this:
    regsvr32.exe "C:\Windows\System\crystl32.ocx"

    Hope this helps.
    E. McEvoy
    Crystal Reports Consultant

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2008
    Posts
    162

    Re: crystl32.ocx error

    thanx a lot. the list you gave me worked.however i was now getting a different error telling me that i was attempting to replace a dll that already exists with an older version.i got around it by going to the setup.lst file and removing the entry of the conflicting dll.there after just to make sure i didnt lose any of the actual project's files i then copied the project folder that was created in program files when i installed on the developer machine and then replaced the same folder on the client machine with it. i know it's a bit mercy but it did the job. so thanx again for that list of dlls.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.