Hydratec Inc.

Need to save a card for later?

Create a bookmark folder in your browser of choice (Chrome, Firefox...), and save individual cards in your bookmarks to view here later.

Standalone HydraCALC (Location)

Error Type: Runtime Error

Description:

Trying run a calculation as stand-alone, or via AutoCAD/AutoCALC or Revit/AutoCALC, you get this error message;

Run-time error 339:  Runtime error 339  Runtime 339
Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid

It's likely a job without a pump works, but one with a pump crashes
 

Solutions:


1.
Cause:

SOLUTION 1

You are missing the file MSCOMCTL.OCX outright.

Solution:

Check the folder; "C:\Windows\SysWOW64\" to see if you have the file MSCOMCTL.OCX in there.  If missing, check your local disk for the drive and copy it over, or get the file from a co-worker.  You may have to register the file (see other solutions below).  

 

See solution 3 to ensure you're not getting the version of the file which may not work regardless (7.0.55.3227)


2.
Cause:

SOLUTION 2 (see if solutions 1 works before trying this)

The file you have may not be registered properly by Windows.

Solution:

Confirm you have the file C:\Windows\SysWOW64\MSCOMCTL.OCX

1. Open the RUN dialog box by being on your desktop then pressing the combination of the Windows key + R

 

2. In the ‘open’ line, paste everything you see on the line below (including the quotation marks) to unregister the file;

regsvr32 /u "C:\Windows\SysWOW64\MSCOMCTL.OCX"

Then type this to register the file

regsvr32 "C:\Windows\SysWOW64\MSCOMCTL.OCX"

Example of what the window will look like;

 

3. Allow the computer to make changes and let it run through.  You should get a message saying the unregistration and registration were successful.  If you get an error message, then it was NOT successful and you'll have to un/register the file in a Command Prompt being run as the administrator. 

GOOD RESULT:

BAD RESULT:

If you get the BAD RESULT, see the SOLUTION 4 about registering as admin.

It's recommended you turn off then turn on the computer, then test the command again.


3.
Cause:

SOLUTION 3 (see if solutions 1-2 work before trying this)

The MSCOMCTL.OCX file you have is too new

Solution:

One user found that their current MSCOMCTL.OCX wouldn't register nor unregister in Windows.  Their version was 7.0.55.3227.  They found an older version from a co-worker, copied it to their computer and had to unregister and re-register it (Solution 2).  Thanks Joe Q.


4.
Cause:

SOLUTION 4 (see if solutions 1-3 work before trying this)

The file you have may cannot be registered normally.  It must be registered by Windows as an Admin.

Solution:

Go to your START button then type in or search for CMD.  At the Command Prompt option select Run as Administrator;

To first un-register,

All the commands you need to type in the Command Prompt are highlighted

C:\>                                                    CD\

C:\>                                                    CD WINDOWS

C:\Windows>                                   CD SYSWOW64

C:\Windows\SysWOW64>            REGSVR32 /U MSCOMCTL.OCX

 

Should give you this;

 

 

Then type;

C:\Windows\SysWOW64>            REGSVR32 MSCOMCTL.OCX

 

Should give you this;

 

 

Close the Command Windows by typing EXIT and pressing <enter>

 

C:\Windows\SysWOW64>            EXIT

 

It's recommended you turn off then turn on the computer, then test the command again.

 

Updated: Dec. 11, 2023, 1:33 p.m. Created: Dec. 15, 2020, 10:28 p.m.