On 16 Jul 2011, at 16:31, Greg Ercolano wrote:

> Reposting the OP's code reformatted.
> 
> OP, why would you be specifying anything other than
> the absolute path to the image?
> 
> You surely can't make assumptions about the current
> working directory being set to anything in particular
> unless you force it to be something specific with chdir().

I may be speaking out of turn, but I have the impression the OP's a Windows 
user, and he's making some assumptions about what the app's dir will be when 
clicked on - i.e. that cwd() will be set to the dir the app is stored in.
This is *usually* true on Windows hosts (though not always) and a lot of simple 
Windows code seems to assume it.
It, of course, is not generally true, and certainly not true on OSX or most 
*nix variants.





_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to