Jump to content
Stano

Custom component Resource PRINTFORM not found

Recommended Posts

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}   
...

 

2022 04 07 09 30 16.png

Share this post


Link to post

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

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 by uligerhardt

Share this post


Link to post
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

---

Edited by Stano

Share this post


Link to post

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
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 by Remy Lebeau

Share this post


Link to post
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×