简体   繁体   English

我有 .DCU 但没有 .PAS

[英]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.

相关问题 为什么OraNet.dcu没有相应的.pas文件? - Why does OraNet.dcu have no corresponding .pas file? 将 Delphi .dcu 反编译为 .pas - Decompiling Delphi .dcu to .pas 找不到.pas文件,但.dcu在那里,这还不够吗? - .pas file not found but the .dcu is there, is that not enough? 未找到单元:'System.pas' 或二进制等效项 (.dcu):在 jenkins 上编译 - Unit not found: 'System.pas' or binary equivalents (.dcu) : Compiling on jenkins Delphi XE-严重:F1027找不到单位:'System.pas'或等效的二进制文件(.dcu) - Delphi XE - Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu) Delphi XE3:[dcc32致命错误] Unit5.pas(7):F1026找不到文件:“ RzEdit.dcu” - Delphi XE3: [dcc32 Fatal Error] Unit5.pas(7): F1026 File not found: 'RzEdit.dcu' 未找到Delphi XE-F1027单元:激活试用版时的'System.pas'或二进制等效(.dcu) - Delphi XE - F1027 Unit not found: 'System.pas' or binary equivalents (.dcu) upon Activation of trial version 如何以表格形式查看 DCU 文件 - How do I view DCU files as forms 如何查看 .dcu 是用哪个 Delphi 版本编译的? - How can I see which Delphi version a .dcu was compiled with? 我可以重新编译Delphi IDE使用的.PAS文件吗? - Can I recompile the .PAS files used by the Delphi IDE?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM