Discussion:
OLE error code 0x80040154 on form with OLE object
(too old to reply)
Dave Connolly
2005-03-08 18:51:02 UTC
Permalink
Hi there,

I've done a bit of research but can't reproduce the error on my workstation.

The message being received on client machines (1 is Windows 98, 1 is Windows
XP Pro) is:

OLE error code 0x80040154: Class not registered. OLE object is being
ignored. Record number 4

The application is written in Microsoft Visual FoxPro 8.0 running under
Windows XP Pro.
They have the appropriate runtime files installed for FoxPro
and every other form works for them the same way it works on my workstation.
The form contains an OLEcontroll which appears, but is empty.
The form correctly displays the report (which was saved to a text file)on my
workstation.

I'd appreciate any help,

Dave Connolly
Province of Prince Edward Island
Canada
John L Veazey
2005-03-16 05:21:02 UTC
Permalink
Dave,

An ActiveX control that the program is attempting to use isn't registered on
your machine. This can happen for any number of reasons, here's a few.

1. The Active X control does not exist on your machine.
2. When the program was installed, the user did not have permission to
register controls.
3. An error occurred while attempting to register the control.

The easiest way to solve this problem is usually to reinstall the software
generating this error. Normally, the installation sets will install any
needed ActiveX controls.

If that does not work, or you cannot reinstall the software for whatever
reason, first you have to find out what ActiveX control is causing the error.
You can do this by talking to the developers who wrote the software.

Ask them what ActiveX control is used on that window, and make sure to get
the filename. Depending on the control, there might be dependency dll's that
are required by the control. So, make sure to ask the developers about this,
as well. Search the machine having problems for that file. If it is
missing, you should be able to copy if from the machine that is working.

Regardless of whether the file was missing, the next step is to register the
file. Here's an example

regsvr32 c:\windows\system32\control.ocx

Just change the path and filename to wherever and whatever is appropriate
for your control.

--
John L Veazey
Platypus & Wombat Lead Developer
Web: http://platypus.tucows.com
Post by Dave Connolly
Hi there,
I've done a bit of research but can't reproduce the error on my workstation.
The message being received on client machines (1 is Windows 98, 1 is Windows
OLE error code 0x80040154: Class not registered. OLE object is being
ignored. Record number 4
The application is written in Microsoft Visual FoxPro 8.0 running under
Windows XP Pro.
They have the appropriate runtime files installed for FoxPro
and every other form works for them the same way it works on my workstation.
The form contains an OLEcontroll which appears, but is empty.
The form correctly displays the report (which was saved to a text file)on my
workstation.
I'd appreciate any help,
Dave Connolly
Province of Prince Edward Island
Canada
Dave Connolly
2005-03-17 18:53:02 UTC
Permalink
John,

Thanks for your reply.
Since it was a custom made application, there was no install package, and
the developer is not available for consultation.

I was able to look in the OLE control in FoxPro Developer and determine that
the ActiveX control in question resided in richtx32.ocx so I'm having our
technician ensure that the file exists and is registered in Windows on the
client machines.

Thanks again for pointing me in the right direction.

Dave Connolly
Prince Edward Island
Canada
Post by John L Veazey
Dave,
An ActiveX control that the program is attempting to use isn't registered on
your machine. This can happen for any number of reasons, here's a few.
1. The Active X control does not exist on your machine.
2. When the program was installed, the user did not have permission to
register controls.
3. An error occurred while attempting to register the control.
The easiest way to solve this problem is usually to reinstall the software
generating this error. Normally, the installation sets will install any
needed ActiveX controls.
If that does not work, or you cannot reinstall the software for whatever
reason, first you have to find out what ActiveX control is causing the error.
You can do this by talking to the developers who wrote the software.
Ask them what ActiveX control is used on that window, and make sure to get
the filename. Depending on the control, there might be dependency dll's that
are required by the control. So, make sure to ask the developers about this,
as well. Search the machine having problems for that file. If it is
missing, you should be able to copy if from the machine that is working.
Regardless of whether the file was missing, the next step is to register the
file. Here's an example
regsvr32 c:\windows\system32\control.ocx
Just change the path and filename to wherever and whatever is appropriate
for your control.
--
John L Veazey
Platypus & Wombat Lead Developer
Web: http://platypus.tucows.com
Post by Dave Connolly
Hi there,
I've done a bit of research but can't reproduce the error on my workstation.
The message being received on client machines (1 is Windows 98, 1 is Windows
OLE error code 0x80040154: Class not registered. OLE object is being
ignored. Record number 4
The application is written in Microsoft Visual FoxPro 8.0 running under
Windows XP Pro.
They have the appropriate runtime files installed for FoxPro
and every other form works for them the same way it works on my workstation.
The form contains an OLEcontroll which appears, but is empty.
The form correctly displays the report (which was saved to a text file)on my
workstation.
I'd appreciate any help,
Dave Connolly
Province of Prince Edward Island
Canada
Loading...