F1026找不到文件:’System.Actions.dcu'(单位范围“系统”表示仅限Win64,OSX32,Win32)
我从来没有真正理解单位范围.有没有一个正确的解决方案来解决这个问题而不是在编译器版本{$IFDEF}中包装东西?
谢谢
XE2中没有Actions单元.它是XE3中的新功能,是将Action支持引入FireMonkey的重构工作的一部分.记录如下:What’s New in Delphi and C++Builder XE3:
Actions: FireMonkey now supports actions and action lists, two features that were previously supported only in VCL:
Important: Every FireMonkey or VCL application that uses actions must specify the System.Actions and System.Classes units in the uses section.
Changes in Implementation of VCL Actions
The System.Actions unit is created in the RTL package. Classes from the Vcl.ActnList unit that provide framework-independent action features are moved into this unit. Classes in System.Actions extend the most fundamental behavior of action features introduced in the TBasicAction and TBasicActionLink classes.
Important: As a result of these changes, you need to add the System.Classes and System.Actions units into the uses section.
Implementation of Actions in FireMonkey and VCL
FireMonkey (FMX)
The framework-independent implementation is common to FireMonkey and VCL:
This basic actions functionality is extended in the new System.Actions RTL unit.VCL
Framework-independent action features that were implemented in the Vcl.ActnList unit in previous RAD Studio releases are now in the new System.Actions unit in the RTL (common to VCL and FireMonkey).
Important: As a result of these changes, you need to add the System.Actions unit to the uses section (or #includes) in your VCL applications that use actions.
如果您实际上没有在代码中使用操作,则必须删除对Actions的引用,否则{$IFDEF}将其删除.