Главная страница | назад





Article #16440: Duplicate resource errors

 Question and Answer Database
FAQ1440D.txt Duplicate resource errors
Category :Miscellaneous
Platform :All
Product :All 32 bit
Question:
How can I avoid getting duplicate resource errors when linking a
language dependent resource file under Delphi 3.0 or
Borland C++ Builder?
Answer:
If the resource identifier has an even number of characters,
you may get duplicate resource errors. Rename the resource
to a name that has an odd number of characters.
Example resource scripts:
{This compiles fine}
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
Hello BITMAP "hienglsh.bmp"
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MEXICAN
Hello BITMAP "hispansh.bmp"
{This does not compile}
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
Helo BITMAP "hienglsh.bmp"
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MEXICAN
Helo BITMAP "hispansh.bmp"
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99