(WinXP, AS 5.8.3, PAR 0.85, Tk 804.027)
I'm trying to load some GIF images into Tk Buttons in an app I pp'd. I build with the -a <directory> option.
Here's the line that burps: $window->Photo(-file => "icon.gif")
I've tried several different paths to the image files in my app:
"/TFG/icons" "TFG/icons" "TFG/icons/icon.gif" "TFG/icons/icon.gif" "/icon.gif" "icon.gif"
here's the pp commands I've tried:
pp -a TFG\icons -o myout.exe myscript.pl pp -a TFG/icons -o myout.exe myscript.pl pp -a TFG/icons/icon.gif -o myout.exe myscript.pl pp -a TFG\icons.icon.gif -o myout.exe myscript.pl
I've run with -v 3, and it shows its adding the files from the directory...but the app can't find anything at runtime.
So can anyone tell me, given a pp command line of where myscript.pl should look for a file 'icon.gif' thats in the directory TFG/icons ?
Better still heres a simple example:
#usr/local/bin/perl open(INF, "pptest.txt") || die $!;
print while (<INF>);
and pptest.txt is a simple text file in the local directory, here's my pp command
C:\Perl\pp>pp -v 3 -o ..\pptest.exe -a pptest.txt pptest.pl >pp.log
C:\Perl\pp>cd ..
C:\Perl>pptest No such file or directory at script/pptest.pl line 1.
When I run, it can't find the file. So what file path should I use in my open() statement ?
TIA, Dean Arnold Presicient Corp.
