Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE error code 0x80040154: Class not registered.

Status
Not open for further replies.

vinod563

Programmer
Nov 12, 2019
3
IN
Hi,

I get the error :OLE error code 0x80040154. Class is not registered. I get this error in VFP9.0 application running to convert ESD( easy street darw) diagrams

Is there any separate .ocx file for ".ESD" files?

Can somebody help

Vinod.
 
Yes, you should have an OCX for the specific product that you are using. Check to see if it is present - probably in your Windows / System directory or the directory in which you installed the product.

If you do have that file, it might be that the relevant Registry entry is missing or corrupted. The solution is to run REGSVR32.EXE. This should be present in your VFP directory, among other places. Run it from the command prompt, passing the name and path of the OCX. For example:

[tt]REGSVR32.EXE c:\windows\system\myfile.ocx[/tt]

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
There also might not be any OCX, the file type ESD only is associated with the easy street draw software and only it reads and displays ESD images.

Assuming you added an OLE control on your form and the "Insert Object" dialog picked "create from file", that's not giving you the superpower to see file contents in the way software associated with it can display it. The Olecontrol needs an OLE Server, that's an OLE class capable to handle that file. In the simplest case, the ole control will just display the file icon as a Windows Explorer window does when the view is set to icons. And in the worst case, VFP finds some partial type info of such an OLE server, but it isn't registered or not for common use.

Certain OLE servers/classes/controls only work in specific containers. For example, VFP comes with licenses for a few controls you can also redistribute royalty-free, but it's well known that even with such a license the usage is limited. For example, Winsock must be added to a form, you can't use a Winsock instance standalone. See That's not a big restriction, it just shows there are such possibilities.

It's not the message you get, but the underlying reason could be the same, anyway.

If this is about an image, the usual solution is exporting as a type VFP supports: BMP, GIF, PNG, JPG.

Bye, Olaf.

Olaf Doschke Software Engineering
 
I have ESD5 (version 5) installed in my system. I export that registry and made as ESD3 ( version 3). Customer don't want to install separate version. So, I am trying to make tweak in registry, using same installation folder access. How to handle this

Thanks in advance.
 
...then usa an image control to show it on your form, not OLE control.

Another thing you can always do is ShellExecute a file and let Windows start the software associated with that file type.

Bye, Olaf.


Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top