The Windows function UpdateResource has the following description in 
the Win32 Programmer's Reference help file:
"The UpdateResource function adds, deletes, or replaces a resource in 
an executable file"

I can't follow the logic behind recommendations you investigate 
using "resourcestring". resourcestring is used the same way as (ie. 
instead of) using const when declaring string constants. All it does 
is cause Delphi to store string constants as resource strings instead 
of storing them as runtime data. But constants are unmodifiable, and 
so do not suit what you initially asked for.

Better to create your own compiled resource and link it in. That way 
you will know each string's id in advance. I can't say I've tried 
modifying strings in an embedded resource (using UpdateResource) 
myself, but it's something that you might like to try.

Ian.

--- In [email protected], "Emmanuel Lamy" <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
> 
> Anyone out there knows about a TStrings component I can use to store 
> updated string values in the compiled exe file, as opposed to saving 
> the strings in an external file? Any techniques, or workaround will 
be 
> appreciated. TIA.
> 
> Emmanuel
>



Reply via email to