×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

OLE error code 0x80040154: Class not registered.

OLE error code 0x80040154: Class not registered.

OLE error code 0x80040154: Class not registered.

(OP)
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.

RE: OLE error code 0x80040154: Class not registered.

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:

REGSVR32.EXE c:\windows\system\myfile.ocx

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: OLE error code 0x80040154: Class not registered.

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 http://fox.wikis.com/wc.dll?Wiki~ClassNotLicensedF.... 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
https://www.doschke.name

RE: OLE error code 0x80040154: Class not registered.

(OP)
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.

RE: OLE error code 0x80040154: Class not registered.

...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
https://www.doschke.name

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close