> 
> I've got an app working fine on Linux but on Windows there 
> are problems with the path separator. Instead of using '\', 
> functions such as fl_file_chooser() return '/' in their path. 
> How do I make FLTK use the correct path separator?
> 
> 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)?







SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to