gabbbb 0 Posted January 27, 2021 (edited) 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 January 27, 2021 by gabbbb tags added Share this post Link to post
Der schöne Günther 316 Posted January 27, 2021 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
gabbbb 0 Posted January 27, 2021 it's a completely clean unit. but yeah i tried - it doesn't help Share this post Link to post
FPiette 385 Posted January 27, 2021 Do you have several Delphi versions installed? Share this post Link to post
FPiette 385 Posted January 27, 2021 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. 1 Share this post Link to post
gabbbb 0 Posted January 27, 2021 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