Article View: alt.comp.sys.palmtops.pilot
Article #281Re: CodeWarrior+PalmOS* Link Warning: Duplicate resource ´µMWC´(16400) in 'A2.rsrc'
From: Greg Letiecq
Date: Wed, 04 Oct 2000 00:00
Date: Wed, 04 Oct 2000 00:00
73 lines
3989 bytes
3989 bytes
I very much doubt that this can't be fixed. Here's what I'd look at first: Open the _res.h files that are created in the Rsc directory. Each resource type has an identifier, such as 'tFRM' for a form resource. The following line is going to be something like this: #define LoginForm 1000 //(Left Origin = 0, Top Origin... What this is showing is that the Resource ID's you specified in the painter actually have a more critical meaning to the compiler than the names you gave them. The compiler looks at in this case LoginForm as the number 1000, not as "LoginForm", a string. The resource painter does a decent job of assigning these resource ID's within a rsrc file, but it has no idea that there might be other files like this out there for some reason. So if in the first file I have LoginForm with resource ID 1000, and I create a new rsrc file and create a new form and call it JookyForm, guess what the resource ID gets assigned to that form? You got it, 1000. Now we've got two forms defined with the same resource ID of 1000, the definition of a duplicate resource. So if you look at these files, look for duplicate assigned resource IDs between files, and if you see them, there's your problem. The solution is simple. Just open one of the rsrc and reassign the ID values so they won't conflict. As a practice, the second resource file I include always has resource ID's greater than 4000. It keeps me out of this sort of trouble. Greg Letiecq Sybase Professional Services David Kendall wrote: > > You'd do better posting this in one of the Palm OS programming groups, such > as pilot.programmer.codewarrior at news.masena.com, or sign up for the > newgroups at www.palmos.com. > > BTW, that error has been around for a while. You can't fix it, so ignore it. > > David > > <vcentwickler@gmx.de> wrote in message > news:39d63542.559303@news.btx.dtag.de... > > > > I added two recsource files to one project: > > > > A1.rsrc > > project settings: > > Generate App Resources unchecked > > Application Icon 1000 > > Auto Generate Header checked > > Include Details checked > > Keep IDs in sync checked > > Palm OS Target Palm OS 3.1 and later > > > > A2.rsrc > > project settings: > > Generate App Resources checked > > Application Icon 1000 > > Auto Generate Header checked > > Include Details checked > > Keep IDs in sync checked > > Palm OS Target Palm OS 3.1 and later > > > > When i link the project i get the message: > > Link Warning: Duplicate resource ��MWC�(16400) in 'A2.rsrc' > > > > > > If i exclude one Resource file the warning disappears. > > What�s the problem ? > > What must i do to include diferent resource files to one project ? > > > > Thank you for your help
Technical Details
Message-ID:
<39DB3657.23021722@erols.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39d63542.559303@news.btx.dtag.de> <39d693e3$0$27244@wodc7nh6.news.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa42d,74b6e4bcc4ae4136 X-Google-Attributes: gidfa42d,public X-Google-Thread: 112073,74b6e4bcc4ae4136 X-Google-Attributes: gid112073,public X-Google-Thread: fcb38,74b6e4bcc4ae4136 X-Google-Attributes: gidfcb38,public X-Google-Thread: 10baa0,74b6e4bcc4ae4136 X-Google-Attributes: gid10baa0,public X-Google-Thread: 11219a,74b6e4bcc4ae4136 X-Google-Attributes: gid11219a,public From: Greg Letiecq <gletiecq@erols.com> Subject: Re: CodeWarrior+PalmOS* Link Warning: Duplicate resource ´µMWC´(16400) in 'A2.rsrc' Date: 2000/10/04 Message-ID: <39DB3657.23021722@erols.com> X-Deja-AN: 677456025 Content-Transfer-Encoding: 8bit References: <39d63542.559303@news.btx.dtag.de> <39d693e3$0$27244@wodc7nh6.news.uu.net> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@rcn.com X-Trace: zt9fi326wYe5rdAzz7g7lJUsC9sO9SRjteKNZPiDpbxXs0YWw5FKHA== Organization: Sybase, Inc. Mime-Version: 1.0 NNTP-Posting-Date: 4 Oct 2000 13:51:24 GMT Newsgroups: alt.comp.sys.palmtops.pilot,comp.sys.palmtops.pilot,codewarrior.palm,de.comp.sys.handhelds.palm-pilot,uk.comp.sys.palmtops