5 Dec
2004
5 Dec
'04
1:29 p.m.
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