On Nov 12, 2007, at 10:08 AM, Richard Penman wrote:

> hi,
>
> 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?


'/' *is* the correct separator ;-) . We neither like the backslash,  
nor the colon separator of MSWindows and MacOS respectively.

Since FLTK can be used on many platforms, we decided to use the  
forward slash as the standard separator. This turned out well for all  
folks using Unix style calls to access their file system (which is  
possible on all our three main platforms).

If you must have backslashes instead of forward slashes, you can write  
a little function that changes a string in place or creates a usable  
copy.

----
http://robowerk.com/


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

Reply via email to