I use the TResourceStream class to read a resource, I know that I want to change the resource in memory, but the Write documentation in this class says:
Applications should not use TResourceStream to write the resources of a running application. Writing overrides the inherited method to throw an EStreamError exception when an application tries to write application resources.
Like all other TResourceStream data write methods (WriteBuffer, WriteComponent), call Write to execute the actual letter, calling any of the TResourceStream data write methods will throw an exception.
The question is, is there a way to change the resource in my running application using any WinApi funcion? or are the resources rigidly read-only?
source share