[fpc-pascal] Adding a array of float in ressource and use it ?
Sven Barth
pascaldragon at googlemail.com
Tue Mar 7 11:12:56 CET 2017
Am 06.03.2017 23:57 schrieb "fredvs" <fiens at hotmail.com>:
>
> Re-hello.
>
> 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.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170307/12e8e4e7/attachment.html>
More information about the fpc-pascal
mailing list