例如我这里封装了一个文件类:
class File
{
public:
bool Open(const std::string &fname, t_ulong flag);
bool Open(const std::wstring &fname, t_ulong flag);
};
我在win下的实现是全都用CreateFileW做的,也就是全转成win下的unicode,但是我在linux下该怎么做呢?
因为我引用这个File类的项目中,所有的路径名称全都是作为wstring的,我不知道在我将来移植的时候会遇到什么问题?
谢谢大家
[ 此贴被XChinux在2008-07-18 09:19重新编辑 ]