Reputation: 2031
I also suffered the problem given already her Graphics.dcu issue. My unit statement goes like this
uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Math,
But I have a different issue. Using VCL framework I got no problem, the failure only occurs while using Firemonkey framework with my units.
OS = WIN 7 Prof. Delphi XE2 Update 4
Upvotes: 0
Views: 1335
Reputation: 4808
A few things:
FMX.Types
(all versions), FMX.Controls
(XE4+, though it existed previously), FMX.Forms
(all versions) and FMX.Graphics
(XE5+).FMX.Forms
not just Forms
.Math
(the lack of Variants
suggests pre-D6!). In practice it is better to only use the units you are actually using symbols from. In particular, if you are really reliant on Windows
and Messages
, then you will have issues cross compiling the code with FMX (FMX controls typically don't have an HWND
, and the FMX TForm
doesn't support the VCL variant's nifty message handling syntax).Upvotes: 4