Mega Search
23.2 Million


Sign Up

Make a donation  
Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp

Hi, world.
Here is the problem with the icon of my application:
I attach an icon to the application via Project Options/Application tab and 
build the application. This is done, say, on the Comp1. Then I just copy the 
exe to the Comp2. The same exe shows the Borland default icon instead of my 
icon on Comp2.
Note: if I browse to this exe with the file manager (or explorer) from the 
Comp1, I still see the correct icon!
Another note: if I compile the application on the Comp2 (where I have 
Borland also installed), and copy the exe to Comp1, then the icon is Ok on 
both computers.
I could not find differences in project settings and sources on both 
computers.
What could be the reason for that? How to "hard set" an icon, so that it is 
never replaced by the Borland icon?
Thank you 


Vote for best question.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2008, at 2:31 AM EST
From: vladimir
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
"Roddy Pratt"  wrote in message 
news:477d3148$1@newsgroups.borland.com...
> Dennis Jones wrote:
>
>> I don't use RAD Studio (it's not ready enough for me yet)
>
> That probably means you're still on BCB5/6, because RADStudio is a
> whole lot readier than BDS2006!

Exactly.


> Are there specific technical barriers/problems that you foresee with
> RS2007, or are you just in a "wait and see" position?

Both.

- Dennis 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 1:08 PM EST
From: Dennis Jones
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
Dennis Jones wrote:

> I don't use RAD Studio (it's not ready enough for me yet)

That probably means you're still on BCB5/6, because RADStudio is a
whole lot readier than BDS2006!

Are there specific technical barriers/problems that you foresee with
RS2007, or are you just in a "wait and see" position?

- Roddy








Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 11:02 AM EST
From: Roddy Pratt
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
"Roddy Pratt"  wrote in message 
news:477d2b35$1@newsgroups.borland.com...
> Dennis Jones wrote:
>
>> (in my automated build system, for instance)
>
> What's your automated build system - Finalbuilder, or something else?

My own, written mostly in Perl.


> All my builds are done in the IDE. Not perfect, maybe, but certainly
> good enough for me.

Which may be acceptable for a one-man shop, but not for a team environment.


>> Which IDE you are talking about, and which themes are you referring
> to?
>
> "XP" style themese in RADStudio 2007 C++ and Delphi. I can post a
> screenshot if you disbelieve this.

It's not that I don't believe it...I just have never seen it.


>> I have never seen themes appear in the design-time forms.
>
> ...maybe because you delete the .RES file from the project ;-)

Or maybe it's because I don't use RAD Studio (it's not ready enough for me 
yet).

- Dennis 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 10:49 AM EST
From: Dennis Jones
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
Dennis Jones wrote:

> (in my automated build system, for instance) 

What's your automated build system - Finalbuilder, or something else?

All my builds are done in the IDE. Not perfect, maybe, but certainly
good enough for me.

> Which IDE you are talking about, and which themes are you referring
to?

"XP" style themese in RADStudio 2007 C++ and Delphi. I can post a
screenshot if you disbelieve this.

> I have never seen themes appear in the design-time forms.

....maybe because you delete the .RES file from the project ;-)

- Roddy
 


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 10:36 AM EST
From: Roddy Pratt
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
"Roddy Pratt"  wrote in message 
news:477cd764$1@newsgroups.borland.com...
> Dennis Jones wrote:
>
>> That is not true.  It is very simple to include a theme manifest
>> and/or version information in an RC file -- I do it *all the time.*
>
> As you say, the you can do those things yourself, but the IDE just
> becomes a little less "integrated".

What good are integrated bugs?  If elminating an "integrated feature" avoids 
problems or eliminates bugs, then you're darn right, I'll disable the 
integration.  I would rather have my automation elsewhere (in my automated 
build system, for instance) than in my IDE anyway.


> Also, I think you lose runtime themes from the IDE form designer if you
> ditch the .RES file.

Which IDE you are talking about, and which themes are you referring to?  I 
have *never* seen themes appear in the design-time forms.

- Dennis 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 10:28 AM EST
From: Dennis Jones
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
"Vaclav Cechura"  wrote in message 
news:477cd8f7@newsgroups.borland.com...
>
> "Dennis Jones"  wrote:
>>I was never able to get the
>>automatic build number incrementing to work in BCB5 or BCB6.
>
> I had the same problem all the time with BCB6 until I upgraded
> to BCB2006 and finally noticed this paragraph in the Help (BCB6
> help has it too):
>
> "Check Auto-increment build number to have the build number
> incremented each time the Project | Build  menu is
> selected. (Other compilations do not change the build number.)"
>
> Which means that a Ctrl+F9 for example, won't change the build
> number. You surely knew this and had some other issues with
> this feature, I think.

Yes, I knew this, and it still didn't work.

- Dennis 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 10:25 AM EST
From: Dennis Jones
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
Dennis Jones wrote:

> That is not true.  It is very simple to include a theme manifest
> and/or version information in an RC file -- I do it *all the time.*

As you say, the you can do those things yourself, but the IDE just
becomes a little less "integrated".

Also, I think you lose runtime themes from the IDE form designer if you
ditch the .RES file.


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 4:39 AM EST
From: Roddy Pratt
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
"Roddy Pratt"  wrote in message 
news:477caefc$1@newsgroups.borland.com...
> Dennis Jones wrote:
>
>> Oh, I think maybe you didn't actually remove the .RES file from the
>> project. Deleting the .RES file from disk is not enough.  You also
>> have to right-click on the project and select "Remove File...", then
>> choose the .RES file to remove it from the project.  If you do not do
>> this, the IDE will continue to try to recreate/update the .RES file.
>
> I think doing this has some bad repercussions: IIRC, your application
> can't use "runtime themes", and "version info" can't be included in the
> executable.

That is not true.  It is very simple to include a theme manifest and/or 
version information in an RC file -- I do it *all the time.*


>I think these get greyed out in the project options dialog.

That's the whole point -- disabling these things in the IDE lets you do them 
yourself and avoid the any potential problems or bugs in the IDE.

The only thing you lose by doing this is that the IDE won't increment the 
build number for you.  And speaking of bugs, I was never able to get the 
automatic build number incrementing to work in BCB5 or BCB6.  Doing it in 
the IDE isn't a great idea anyway -- it's better (IMO) to have build numbers 
handled by your automated build system.

- Dennis 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 4:14 AM EST
From: Dennis Jones
 
Re: Application looses its icon  
News Group: borland.public.cppbuilder.language.cpp
Dennis Jones wrote:

> Oh, I think maybe you didn't actually remove the .RES file from the
> project. Deleting the .RES file from disk is not enough.  You also
> have to right-click on the project and select "Remove File...", then
> choose the .RES file to remove it from the project.  If you do not do
> this, the IDE will continue to try to recreate/update the .RES file.

I think doing this has some bad repercussions: IIRC, your application
can't use "runtime themes", and "version info" can't be included in the
executable. I think these get greyed out in the project options dialog.

- Roddy

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 3-Jan-2008, at 1:46 AM EST
From: Roddy Pratt