Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Ian MacArthur
> > ALSO: perhaps it's no longer needed, but I thought FLTK apps > that used the FLTK image library had to call: > > fl_register_images(); > > ..at the top of main() to ensure the lib properly initialized. > So you should try adding that as the first thing in your main().

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Ian MacArthur
On 16 Jul 2011, at 17:12, Greg Ercolano wrote: > On 07/16/11 00:42, Carlos Luna wrote: >> >> Ok, here´s some example code showing the situation. > > I'd suggest trying a few things. > > First: Try adding some fopen() calls to test if you can > access the files with normal ope

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Ian MacArthur
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 > unles

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Carlos Luna
> Sorry, but if you are reading this via the web-base forum, as in > http://www.fltk.org/newsgroups.php?gfltk.general+v:33316 > then this is completely unintelligible. > > Can people please remember that not everyone receives this via e-mail > and uses Outlook, and that there are also people using

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Greg Ercolano
On 07/16/11 00:42, Carlos Luna wrote: > > Ok, here´s some example code showing the situation. I'd suggest trying a few things. First: Try adding some fopen() calls to test if you can access the files with normal operating system calls using the same filenames you'

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Greg Ercolano
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(). snip

Re: [fltk.general] Problem with Fl_PNG_Image and longfilename path(Windows XP)

2011-07-16 Thread Duncan Gibson
Sorry, but if you are reading this via the web-base forum, as in http://www.fltk.org/newsgroups.php?gfltk.general+v:33316 then this is completely unintelligible. Can people please remember that not everyone receives this via e-mail and uses Outlook, and that there are also people using nntp and ht