Re: E2161 Duplicate string
- From: E Sterrett <bgreenf@xxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 16:43:43 +0100
Danny Strümpel wrote:
E Sterrett schrieb:I am trying to use this function for looking up mime types:
http://www.swissdelphicenter.ch/torry/showcode.php?id=2285
The resource file it comes with has hundreds of strings in it, but I have stripped it down to just one:
STRINGTABLE
BEGIN
101, ".3dm x-world/x-3dmf"
END
The project will not compile with this error:
[Pascal Error] E2161 Duplicate string: ID 101; File ...\mimetypes.res string kept: ".3dm x-world/x-3dmf"; file ...\mimetypes.res resource discarded: ".3dm x-world/x-3dmf".
Any idea whats wrong?
Delete all res files in your project and do a complete rebuild (Shift-F9). You need to have the matching rc files included in your project, so they also get rebuild. The <Projectname>.res doesn't have a rc file, it will be built by the compiler.
I've tried all that.
Worked around it by using a Tstringlist and a text file rather than a string table.
Still rather strange and annoying.
.
- References:
- E2161 Duplicate string
- From: E Sterrett
- Re: E2161 Duplicate string
- From: Danny Strümpel
- E2161 Duplicate string
- Prev by Date: Re: E2161 Duplicate string
- Next by Date: Managing floating/docking forms
- Previous by thread: Re: E2161 Duplicate string
- Next by thread: Managing floating/docking forms
- Index(es):
Relevant Pages
|