[fpc-pascal] Adding a array of float in ressource and use it ?
pascaldragon at googlemail.com
Tue Mar 7 11:12:56 CET 2017
Am 06.03.2017 23:57 schrieb "fredvs" <fiens at hotmail.com>:
> Ok, I do not find yet the guilty in my code, I will re-try a other day.
> By the way, your code is working perfectly Sven.
> Now, last part of the question: how to convert that file stored into
> ressource but without to write to the disk (only memory stream)?
> A TFileStream could be used but it needs a path.
> And in ressource there is no path to use in
> TFileStream.Create('/the/path/filename', fmOpenRead);
> What could be the solution ?
To access a file stored as a resource you need to use TResourceStream.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal