DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2733
Version: 1.3.0


For your short term needs, I'd suggest modifying
Fl_Native_File_Chooser_WIN32.cxx and change all instances of MAX_PATH with
FNFC_MAX_PATH, and define that with:

#define FNFC_MAX_PATH 32767

Meanwhile, I'll see if I can get rid of hard coded char arrays to avoid
having 32k strings all over the place. For instance I know fixed strings
like this:

  char oldcwd[MAX_PATH];
  GetCurrentDirectory(MAX_PATH, oldcwd);

..can be avoided, and replaced with:

  char *oldcwd = 0;
  DWORD oldcwdsz = GetCurrentDirectory(0,0);
  if ( oldcwdsz > 0 ) {
    if (GetCurrentDirectory(oldcwdsz, oldcwd) == 0 ) {
      ..error..
    } 
  }

  [..]

  if ( oldcwd ) {
    SetCurrentDirectory(oldcwd);
    delete [] oldcwd; oldcwd = 0;
  }

..but doing such changes to the rest of the code will take some time I
don't have at the moment. Will follow up when I have some time to look at
this more.


Link: http://www.fltk.org/str.php?L2733
Version: 1.3.0

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to