Mega Search
23.2 Million


Sign Up

Make a donation  
Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide

Whenever i try to add new resource file(.png) to my custom package, it is adding one extra line to my .dpk file
and that is - 
{$R *.dres}

I dont know why this is getting added. Previously this line was not getting added only {$R *.res} was there.

Please help me in the same if someone have an idea.

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 9-Jan-2015, at 11:42 PM EST
From: Manoj Kurkure
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Manoj Kurkure wrote:

> > {quote:title=Tom Brunberg wrote:}{quote}
> > Manoj Kurkure wrote:
> > 
> > > Thank you for reply.
> > > 
> > > I dont know it is problem or not but not only adding line to .dpk but also adding one entry
> > > into Project Manager.  My main problem is that if it is not a problem then previously also i
> > > have added respources to packages many time then why this entry did not get added that time.
> > 
> > Just checked with D2010 (which is the oldest RAD Studio installed on this machine).
> > It behaves exactly the same as DXE7. 
> > When you select Project - Add to project (or right click project in Project Manager and select
> > Add ...) you get a file selection dialog. If you then select Resouces from the file type
> > dropdown and select a .png file and click Open the following happens:
> > - {$R *.dres} is added to the project file (.dpr or .dpk)
> > - A reference to the .png file is added to the Project tree in Project Manager.
> > 
> > Maybe you just did not notice this before?
> > 
> > 
> > -- 
> > Tom Brunberg
> > firstname.lastname@welho.com
> 
> 
> 
> No No!!!
> I have created many packages and added many resources as well. 
> I did not face this before, i am having doubt that may be somehow i have changed some setting but
> no idea.

Then I think you should describe exactly
- Delphi version
- Type of resource (earlier you said .png image)
- Exact steps (menu item, selected option, selected file, everything)

Anyway, AFAIK there is no option that would change the behaviour of what I described in previous
message.

Regards

-- 
Tom Brunberg
firstname.lastname@welho.com

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 3:17 AM EST
From: Tom Brunberg
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
> {quote:title=Tom Brunberg wrote:}{quote}
> Manoj Kurkure wrote:
> 
> > Thank you for reply.
> > 
> > I dont know it is problem or not but not only adding line to .dpk but also adding one entry into
> > Project Manager.  My main problem is that if it is not a problem then previously also i have
> > added respources to packages many time then why this entry did not get added that time.
> 
> Just checked with D2010 (which is the oldest RAD Studio installed on this machine).
> It behaves exactly the same as DXE7. 
> When you select Project - Add to project (or right click project in Project Manager and select Add
> ...) you get a file selection dialog. If you then select Resouces from the file type dropdown and
> select a .png file and click Open the following happens:
> - {$R *.dres} is added to the project file (.dpr or .dpk)
> - A reference to the .png file is added to the Project tree in Project Manager.
> 
> Maybe you just did not notice this before?
> 
> 
> -- 
> Tom Brunberg
> firstname.lastname@welho.com



No No!!!
I have created many packages and added many resources as well. 
I did not face this before, i am having doubt that may be somehow i have changed some setting but no idea.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 2:39 AM EST
From: Manoj Kurkure
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Manoj Kurkure wrote:

> Thank you for reply.
> 
> I dont know it is problem or not but not only adding line to .dpk but also adding one entry into
> Project Manager.  My main problem is that if it is not a problem then previously also i have
> added respources to packages many time then why this entry did not get added that time.

Just checked with D2010 (which is the oldest RAD Studio installed on this machine).
It behaves exactly the same as DXE7. 
When you select Project - Add to project (or right click project in Project Manager and select Add
....) you get a file selection dialog. If you then select Resouces from the file type dropdown and
select a .png file and click Open the following happens:
- {$R *.dres} is added to the project file (.dpr or .dpk)
- A reference to the .png file is added to the Project tree in Project Manager.

Maybe you just did not notice this before?


-- 
Tom Brunberg
firstname.lastname@welho.com

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 1:28 AM EST
From: Tom Brunberg
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Manoj wrote:
> 
> > I dont know why this is getting added. Previously this line was
> > not getting added only {$R *.res} was there.
> 
> A .dres file is a "Delphi compiled resource file".  It is related to the 
> "Resources and Images" feature of the IDE.
> 
> --
> Remy Lebeau (TeamB)



But I have not used "Resources and Images" feature of the IDE.
I have right clicked on package and added the resource using "Add".
I used to add resources same way and i did not get this line and entry before.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 12:45 AM EST
From: Manoj Kurkure
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Manoj Kurkure wrote:

> Thank you for reply.
> 
> I dont know it is problem or not but not only adding line to .dpk but also adding one entry into
> Project Manager.

Oh, I don't think you need to be worried about that.

> My main problem is that if it is not a problem then previously also i have
> added respources to packages many time then why this entry did not get added that time.

I can't answer that without any details.
But really, there's nothing to be worried about.

Cheers

-- 
Tom Brunberg
firstname.lastname@welho.com

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 12:28 AM EST
From: Tom Brunberg
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Thank you for reply.

I dont know it is problem or not but not only adding line to .dpk but also adding one entry into Project Manager.
My main problem is that if it is not a problem then previously also i have added respources to packages many time then why this entry did not get added that time.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Jan-2015, at 12:04 AM EST
From: Manoj Kurkure
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Manoj wrote:

> I dont know why this is getting added. Previously this line was
> not getting added only {$R *.res} was there.

A .dres file is a "Delphi compiled resource file".  It is related to the 
"Resources and Images" feature of the IDE.

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 9-Jan-2015, at 11:56 PM EST
From: Remy Lebeau (TeamB)
 
Re: Resource file addition problem. {$R *.dres}  
News Group: embarcadero.public.delphi.ide
Manoj Kurkure wrote:

> Whenever i try to add new resource file(.png) to my custom package, it is adding one extra line
> to my .dpk file and that is - 
> {$R *.dres}
> 
> I dont know why this is getting added. Previously this line was not getting added only {$R *.res}
> was there.
> 
> Please help me in the same if someone have an idea.

But why is it a problem, that the line is added?
Look in documentation:
http://docwiki.embarcadero.com/RADStudio/XE4/en/File_Extensions_of_Files_Generated_by_RAD_Studio

{quote}
dres
Delphi compiled resource file. This extension is used when you add a resource to a project, such as
an icon or image. The .dres file is only used at link time.
{quote}



-- 
Tom Brunberg
firstname.lastname@welho.com

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 9-Jan-2015, at 11:54 PM EST
From: Tom Brunberg