> > >=20 > > I've got an app working fine on Linux but on Windows there=20 > > are problems with the path separator. Instead of using '\',=20 > > functions such as fl_file_chooser() return '/' in their path.=20 > > How do I make FLTK use the correct path separator? > >=20 > > On Windows I'm compiling FLTK 1.1.7 apps against the MinGW libraries. > > > I think you'll find that '/' is a perfectly acceptable path separator - > the MSVC and mingw C libs understand that '/' is a path separator and do > the Right Thing. > > There are a few (and only a few, now) MS specific functions that still > expect a '\', but the vast majority are perfectly happy with either. So > it's only when you need to call one of these MS specific functions that > it becomes an issue, and in that case it is trivial to scan your string > and swap over the separators. > I've been doing it this way for years, and so far it's been fine, to the > extent that on win32 builds I now explicitly convert the '\' that some > of the MS functions return into '/' for consistency. > > Is there some specific thing you are doing that is actually failing, or > are you just anticipating an issue (that may not in fact exist)? >
thanks for the information. I was anticipating the issue and was then having problems from mixing the 2 slashes. I'm not calling any win32 functions directly so this should be fine. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

