At 01:56 2004-03-18, Ross Clunie wrote:
Has anyone been able to use Resource files with exe files that use "Gui Loft" (.gld) windows. If so can they post an example as I am unable to get it to work. See my sample code.my $fileWindow = Win32::GUI::LoadResource("clearcal.gld"); my $objDesign = Win32::GUI::Loft::Design->newLoad($fileWindow) or die("Could not open window file ($fileWindow)");
I suspect LoadResource doesn't return a file name, but the contents of "clerical.gld", is that right?
If so, try the newScalar() method instead of newLoad(). =head2 newScalar($text, [$fileName]) Note: This is a class/object method. Create new design. Use the scalar $text that contains the a Design definition in "gld" format (must probably be read from file using binmode()). $fileName -- If passed, it is used to set the fileName() property. Return the new object, or undef on errors. =cut Read more: <http://www.buzzwordninja.com/Perl/Loft/reference.html#loading%20the%20file%20yourself> /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: " nForcersHQ.com Forum - nForce, nForce2, nForc..." http://www.nforcershq.com/forum/viewtopic.php?t=8892 dmoz (1 of 13): ...rnet/Web_Design_and_Development/Message_Boards/ 129

