Article View: borland.public.cppbuilder.oodesign
Article #52Re: resource problem
From: Shannon Peterson
Date: Thu, 24 Mar 2005 17:07
Date: Thu, 24 Mar 2005 17:07
35 lines
2508 bytes
2508 bytes
OK after a bit of hacking I found out that some of my own home built components res files had the MAINICON set to the blue borland buildings. After going into each of these components res files and removing the MAINICON icon and relinked my application. I no longer need the pragma line and the icons work like they should. I now have another issue. If I open up one of those other home built components it inserts the MAINICON back into the res file. Is there a way to surpress that from happening besides setting the res file to read only? Because if I set it as read only borland displays an error saying had a problem writting to res file when closing. Gets kinda annoying. thanks for any help Shannon Shannon Peterson wrote: > I have 16x16 and 32x32 icons set up in my programs resource file under > MAINICON. I have the res file added to the project. But unless I add > the line (#pragma resourse "Program.res") it will not set the program > icon. And if I have this line in the project.cpp file it works fine for > win2k, xp etc.. but fails to show the correct icon on the taskbar for > windows 98 or 95, it only shows the default borland buildings. > > What can cause this problem? > > Another programmer doesn't ever need the pragma line and his application > icons work fine on all the systems. We both have looked into why my > application may have problems but can't see anything out of the ordinary. > > any help is appreciated > > thanks > > Shannon
Technical Details
Message-ID:
<4242f3b3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4242d8b0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,87597a62505fdd50 X-Google-Attributes: gid10db1e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 24 Mar 2005 11:07:56 -0600 From: Shannon Peterson <speterson@ae-solutions.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.oodesign Subject: Re: resource problem References: <4242d8b0$1@newsgroups.borland.com> In-Reply-To: <4242d8b0$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.2.62.130 Message-ID: <4242f3b3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111684019 12.2.62.130 (24 Mar 2005 09:06:59 -0800) Lines: 35 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail