Hi,

Jez mentioned it'd be neat to be able to load resources other than bitmaps, 
icons and cursors from the EXE file. This would be very useful for packing your 
GUI Loft .gld files into the exe and things. Well, here it is.

Win32::GUI::LoadResource("SomeResourceName"); will search the exe of the perl 
interpreter that is currently interpreting your app (in PAR, this will be 
par.exe (as extracted from yourexename.exe), in perlapp and perl2exe it will be 
yourexename.exe. In other words, this wont work under PAR as there doesnt 
appear to be a way to modify the resources of the packed par.exe. PAR is 
annoying), and return the raw data of the resource name you requested as a 
scalar.

You must add your resources to the exe file with the RCDATA type. This type 
means "raw data".

If anyone knows of any other perl exe makers that are A) free and B) work then 
please let me know.

Steve

Reply via email to