Hi, I've tested this and it works great (I'm using perl2exe). I built and modified the exe under XP, and have tested it on a win98 box.
I added a png image to my exe, which is extracted by Win32::GUI::LoadResource and displayed as the splash screen. I've also added single bitmaps which are loaded at runtime. Time to say goodbye to that resource directory when shipping the exe!:) jez. ----- Original Message ----- From: "Stephen Pick" <[EMAIL PROTECTED]> To: "Win32-Gui-Users (E-mail)" <perl-win32-gui-users@lists.sourceforge.net> Sent: Thursday, February 19, 2004 12:43 PM Subject: [perl-win32-gui-users] Commited a LoadResource function 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 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users