Stano 143 Posted April 7, 2022 I spent half a day on it. He keeps telling me that "Resource PRINTFORM not found". I tried all the options. Even without rc. The error did not disappear. I'm already desperate package JasotComponents; {$R *.res *.rc} {$R JasotComponents.res JasotComponentsResource.rc} {$R JasotComponents.res JasotComponents.rc} ... Share this post Link to post
Lajos Juhász 293 Posted April 7, 2022 Most probably something wrong with JasotComponents.res or JasotComponentsResource.rc. Unfortunately we have no access to those files to inspect. Share this post Link to post
uligerhardt 18 Posted April 7, 2022 (edited) Shouldn't the second $R line be {$R JasotComponentsResource.res JasotComponentsResource.rc} ? Also, the first and the third $R line refers to identical files, doesn't it? Edited April 7, 2022 by uligerhardt Share this post Link to post
Stano 143 Posted April 7, 2022 35 minutes ago, uligerhardt said: Tiež prvý a tretí riadok $R odkazuje na identické súbory, však? Yes. So I tested it. Only one case at a time! 37 minutes ago, uligerhardt said: {$R JasotComponents Resource .res JasotComponentsResource.rc} I haven't come across anything like this anywhere. I can try. 2 hours ago, Lajos Juhász said: S najväčšou pravdepodobnosťou niečo nie je v poriadku s JasotComponents.res alebo JasotComponentsResource.rc. Bohužiaľ nemáme prístup k týmto súborom, aby sme ich mohli skontrolovať. Images are displayed on the palette. Share this post Link to post
Stano 143 Posted April 7, 2022 (edited) --- Edited April 7, 2022 by Stano Share this post Link to post
uligerhardt 18 Posted April 7, 2022 I'll try to rephrase: As your package is called JasotComponents, * means JasotComponents, so the 3 $R lines are equivalent to: {$R JasotComponents.res JasotComponents.rc} {$R JasotComponents.res JasotComponentsResource.rc} {$R JasotComponents.res JasotComponents.rc} So you're instructing Delphi to include the resource file JasotComponents.res 3 times, and to create it alternatingly from JasotComponents.rc and JasotComponentsResource.rc. That probably won't work. 😉 Share this post Link to post
Remy Lebeau 1394 Posted April 7, 2022 (edited) 7 hours ago, Stano said: He keeps telling me that "Resource PRINTFORM not found" Who's "He" exactly? The IDE? Your code? Where exactly are you seeing the error? Edited April 7, 2022 by Remy Lebeau Share this post Link to post
Stano 143 Posted April 7, 2022 3 hours ago, uligerhardt said: So you're instructing Delphi to include the resource file JasotComponents.res 3 times, and to create it alternatingly from JasotComponents.rc and JasotComponentsResource.rc. That probably won't work. 😉 You haven't read it carefully or the translation is bad. I always used only one line. I'm not that crazy. 57 minutes ago, Remy Lebeau said: Who's "He" exactly? The IDE? Your code? Where exactly are you seeing the error? I did not check the translation. Sorry. When I started reading about manually compiling resources and runtime packages, wrapped me up deadly sweat. I solved this using TVirtualImageList. It's not clean. But simple and it can be used. It's closed to me. Share this post Link to post