[英]I have .DCU but not .PAS
I am migrating some software from Delphi 6 to RAD 10.3.我正在将一些软件从 Delphi 6 迁移到 RAD 10.3。 I have a line of code that I am receiving an error on and am not really sure how to resolve it.
我有一行代码收到错误,但不确定如何解决。 The line is:
该行是:
uses LMDSpeedButton, ExtCtrls, StdCtrls, LMDEdit,ovcsf, Forms, ovcmeter,SDL_replis
The error I am seeing is:我看到的错误是:
[dcc32 Fatal Error] ScreenResolution.pas(25): F2613 Unit 'SDL_replis' not found.
[dcc32 致命错误] ScreenResolution.pas(25):未找到 F2613 单元“SDL_replis”。
I searched for SDL_replis
and found the SDL_replis.dcu
but not .PAS.我搜索了
SDL_replis
并找到了SDL_replis.dcu
但没有找到 .PAS。 It is my understanding that when using "uses" I need to have the .PAS.据我了解,在使用“使用”时,我需要拥有 .PAS。 Is that correct and how do I get past this?
这是正确的,我该如何克服?
It is my understanding that when using "uses" I need to have the .PAS.
据我了解,在使用“使用”时,我需要拥有 .PAS。 Is that correct
那是对的吗
No. The compiler will use a .dcu
file if found, and then fall back to a .pas
file if needed.不会。如果找到,编译器将使用
.dcu
文件,然后在需要时回.pas
文件。
However, .dcu
files are version-specific.但是,
.dcu
文件是特定于版本的。 So, you can't use a D6 .dcu
file in RS10.3.因此,您不能在 RS10.3 中使用 D6
.dcu
文件。 If you don't have the original .pas
file to recompile the .dcu
in RS10.3, and can't otherwise install an updated version of SDL into RS10.3, then you are likely out of luck.如果您没有原始
.pas
文件来重新编译 RS10.3 中的.dcu
,并且无法将更新版本的 SDL 安装到 RS10.3 中,那么您很可能不走运。 Your only option would be to write a .dll
in D6 that wraps the desired logic from the .dcu
, and then use that .dll
in RS10.3.您唯一的选择是在 D6 中编写一个
.dll
来包装来自.dcu
的所需逻辑,然后在 RS10.3 中使用该.dll
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.