Rich Cooper wrote:
> While trying to compile an old pascal program with D7/Vista, I get an error
> that I don't understand.  It says:
> 
> [Fatal Error] Grail.dpr(6): Unit Messages was compiled with a different
> version of Windows.TSmallPoint

Usually, that means that you have allowed Delphi to recompile one of the 
mentioned units. That can happen is you add the VCL or RTL source 
directory to your search path. Don't do that. Those folders should only 
be on your browsing path.

Make sure the files in your search path are only DCU files.

> I am compiling Grail.dpr, which has the following text:
> 
> ================================== =============================
> program Grail;
> 
> uses
>   Forms{,}
>   {Ai in 'AI.PAS' {Form1,}
>   {Grailio in 'GRAILIO.PAS'};  --THIS IS WHERE THE ERROR OCCURS

I would be very wary editing the DPR's "uses" clause like that. The IDE 
can be very finicky about the format of the code it manages. If you 
change it to a format that the IDE is not expecting, various errors can 
occur, such as the IDE refusing to compile your project at all.

> {$R *.RES}
> 
> begin
>   Application.CreateForm(TForm1, Form1);
>   Application.Run;
> end.
> ================================== =============================
> 
> Since I have commented out the two units, what is it that uses Messages?
> If that is Forms, then how do I adjust this to get a good compile?

Forms uses Messages and Windows. Messages uses Windows.

The unit that you have recompiled is not necessarily Forms, Messages, or 
Windows.

-- 
Rob
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to