Re: E2161 Duplicate string



E Sterrett wrote:
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?

Thanks
It's possible you already have a string ID of 101 . I don't think the
contents of a string matters. It's the ID that is being used.
and if memory serves. 100 range is a common value used for something
in the resource, I just can't remember what it was.


--
http://webpages.charter.net/jamie_5";

.



Relevant Pages

  • Re: Multilanguage
    ... User choose which strings should be translated ... >> The resource file is only a storage space, you can switch languages ... that the app use the last selected language on start up. ...
    (microsoft.public.vb.general.discussion)
  • Re: Global resource file
    ... accessing the strings at the same time. ... I did think about caching the error XML file in memory but it will be quite ... >> However what I would like to do is have a single global resource file ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Form Localization
    ... my forms share strings so I need somewhere centralized where the ... central resouce file to be swapped in and out by the CLR depending on ... culture as per the usual .net behaviour. ... possible to have 1 resource file for each culture which contains the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Overriding default language in single MUI resource file
    ... to bind on-the-fly (require a restart to get the new language). ... languages in a single resource file. ... English strings will be displayed. ... so that on a German system the English resources are displayed. ...
    (microsoft.public.vc.mfc)
  • Resource File (.resx) does not show changes??
    ... I use a resource file to store user's settings such as ... language and other strings. ... user changes one of the strings in the resource file, ... are shown by VB.NET untill after the user reloads the app. ...
    (microsoft.public.dotnet.languages.vb)