Results 1 to 8 of 8

Thread: OCX Runtime Error (372) Help...

  1. #1

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Resolved OCX Runtime Error (372) Help...

    Hello all,

    I have written a program and with it I have included the required OCX files (In the same directory as the EXE file) and I an getting an error saying that the application has failed to load the required OCX file.

    Is there something I have to do to get these files to load, the fill message is written below.

    Failed to load control 'CommonDialog' from COMDLG32.OCX. Your version of COMDLG32.OCX may be outdated. Make sure you are using the version of the control that was supplied with this application.
    Thanks for the help,


    RyanJ
    Last edited by sciguyryan; Apr 4th, 2005 at 03:40 PM.
    My Blog.

    Ryan Jones.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: OCX Runtime Error (372) Help...

    Why don't you use an installation program? It will install all necessary files for you. You can use the Package and Deployment Wizard which is included with VB, or you could download INNO which is free.

  3. #3

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: OCX Runtime Error (372) Help...

    If that is nessisary then that is what I will have to do but I was hoping to make the application one that does not need to be installed.

    Do you have any idea what could be wrong?


    Thanks for the help,


    RyanJ
    My Blog.

    Ryan Jones.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: OCX Runtime Error (372) Help...

    An OCX has to be registered in order to work. Have you used REGSVR32.exe?

    http://www.vbforums.com/showthread.p...=10+easy+steps
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  5. #5

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: OCX Runtime Error (372) Help...

    I guess the only answer I can give is OOOOPs!

    It seems that I did infact forget to register the OCX's for use - hard to believe such a simple mistake could cause such a problem.


    Thanks for the help,


    RyanJ
    My Blog.

    Ryan Jones.

  6. #6
    Member
    Join Date
    Aug 2006
    Posts
    32

    Re: OCX Runtime Error (372) Help...

    Im having the same problem. I had my friend register the ocx, and its still telling him its outdated. And its an ocx I made?!

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX Runtime Error (372) Help...

    Are there diffferent versions of the same OCX on the machine?

  8. #8
    Member
    Join Date
    Aug 2006
    Posts
    32

    Re: OCX Runtime Error (372) Help...

    I just found out how to fix it. I got this .exe from a friend called libfiles.exe or something. And they run it on their machine and then the program works fine. I'm not sure what exactly it does.

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