请教CFileDialog的问题
我定义了一个CFileDialog类dlg,然后
我用CString path=dlg.GetPathName();得到了所需文件的全路径如: path="e:\temp\temp.tmp",但是实际上当我定义一个fstream变量(如fileopen)的时候,用如下语法:
ifstream fileopen(path,
ios::in,
filebuf::sh_none
);
这个时候我想需要把e:\temp\temp.tmp转成c:\\temp\\temp.tmp才能打开,对吗?
具体该怎么做呢?