Jump to content
gabbbb

TWebBrowser / SHDocVW problem

Recommended Posts

Hi, after installing Delphi 10.4.1 i'm trying to compile a new VCL project. Its only using the twebbrowser component.

When compiling I get this error:

[dcc32 Fatal Error] Unit1.pas(7): F2051 Unit SHDocVw was compiled with a different version of IEConst.sNotSupportedByEdge

 

has anyone had the same and solved it?
the only hint I found is to remove ieconst.pas but it doesn't work.

Edited by gabbbb
tags added

Share this post


Link to post

Not published anything with 10.4.1 yet (just 10.4.0), but I had no problems compiling projects with 10.4.1. Have you tried removing all dcu files and trying to recompile? Does this even happen when you create a new VCL project and drop a TWebBrowser onto the main form?

Share this post


Link to post

It is likely that you have dcu for D10.3 found by D10.4 which result in the error you see.

I'll assume you installed D10.4 in another directory than D10.3.

Make sure the paths in Delphi options, in project options and global to the system are all pointing to the correct Delphi instance.

 

Using SysInternals ProcessMonitor you can see which dcu files Delphi is using.

 

  • Thanks 1

Share this post


Link to post

Exactly ... the paths got messed up. So far, I've managed to compile and it's OK. I'll put everything in order in a moment. The tool helped great. thx

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×