|
Boost Users : |
From: Surya Kiran Gullapalli (skg_at_[hidden])
Date: 2004-12-05 08:29:29
Hi,
I've this code, which is supposed to work on both windows and linux OS.
I'll get a particular directory/file path from a fileselection dialog,
where by i process this path.
The question for me, is I'm using the boost::filesystem::path
constructor like this.
boost::filesystem::path p (path_from_fs_dialog,
boost::filesystem::native) ;
Its working fine on linux (as the string path_from_fs_dialog contains
"/" as directory separator).
when comes to windows path_from_fs_dialog contains "\" as the directory
separator, and the path constructor is throwing exception.
What could have been the reason? I've to change the namecheck function
from "native" to "no_check"
Any ideas what might have gone wrong?
Thanks in advance,
Surya
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net