I am migrating some software from Delphi 6 to 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.
I searched for SDL_replis and found the SDL_replis.dcu but not .PAS. It is my understanding that when using "uses" I need to have the .PAS. Is that correct and how do I get past this?
No. The compiler will use a
.dcufile if found, and then fall back to a.pasfile if needed.However,
.dcufiles are version-specific. So, you can't use a D6.dcufile in RS10.3. If you don't have the original.pasfile to recompile the.dcuin RS10.3, and can't otherwise install an updated version of SDL into RS10.3, then you are likely out of luck. Your only option would be to write a.dllin D6 that wraps the desired logic from the.dcu, and then use that.dllin RS10.3.