Jump to content
alogrep

Vcl.ExtDlgs was compiled with a different version of Vcl.Dialogs.TOpenDialog?

Recommended Posts

HI

Compiling the first project in delphi 12, I get this error
[dcc32 Fatal Error] : F2051 Unit Vcl.ExtDlgs was compiled with a different version of Vcl.Dialogs.TOpenDialog
But  Vcl.Dialogs.TOpenDialog.pas does NOT EXISTS?
 
dir \Vcl.Dialogs.TOpenDialog.pas /s
 Volume in drive C is Acer
 Volume Serial Number is A295-B72F
File Not Found
 What am I missing?
 

Share this post


Link to post
3 minutes ago, alogrep said:

Vcl.Dialogs.TOpenDialog.pas does NOT EXISTS?

TOpenDialog is the class. Vcl.Dialogs.pas is the file containing that class

Share this post


Link to post
1 hour ago, alogrep said:

[dcc32 Fatal Error] : F2051 Unit Vcl.ExtDlgs was compiled with a different version of Vcl.Dialogs.TOpenDialog

You want to look for Vcl.ExtDlgs.* and Vcl.Dialogs.*

 

Do you recall modifying either Vcl.ExtDlgs.pas or Vcl.Dialogs.pas?  Do you have multiple versions of Delphi installed? Are your library and search paths set correctly?

 

The compiler is finding versions of those two units that are not compatible. This primarily occurs when the interface section of one unit does not match the interface that the other unit was compiled against.

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

×