[Lazarus] Poor man's resource code available and CheckRide update: now with editor

Sven Barth pascaldragon at googlemail.com
Tue Jan 31 09:45:27 CET 2012


Am 30.01.2012 09:09, schrieb Reinier Olislagers:
> Hi all,
>
> (Cross posted to Lazarus+FPC lists)
>
> Thanks to UPayload (http://www.delphidabbler.com/articles?article=7) and
> some help on the forum, I could implement an alternative way of storing
> files in an executable file (basically it just appends them with a footer).
> See source: poormansresource.pas in
> https://bitbucket.org/reiniero/checkride/src/, and the
> CheckRideResourceZipper project for sample code
>
> This method allows me to edit such a "resource" using an FPC/Lazarus
> program.
> As - I think - DoDi predicted, I had a lot of trouble trying to work
> with regular Windows resources, but whether that is due to bugs in FPC,
> Windows or me, I don't know ;)
>
> I updated my CheckRide remote control package with this functionality: a
> helper can edit CheckRide.exe with his hostname and port number and
> distribute that single exe to his clients/helped persons.
> This allows 1 click operation at the helped side.
>
> I also tested operation with a Linux helper running stunnel+vncviewer
> and a WIndows helped party running CheckRide.exe
>
> See the site mentioned above.
>
> Comments, patches, as well as criticism welcome ;)

Out of curiosity: Why did you implement that? On Windows you can already 
edit resources using a resource editor if you use FPC's Resource 
support. On Linux I've not tested yet whether you can edit the embedded 
resources.

Regards,
Sven





More information about the Lazarus mailing list