MFC Library Reference CDocument::GetPathNameCall this function to get the fully qualified path of the document's disk file.
const CString& GetPathName( ) const;Return ValueThe document's fully qualified path. This string is empty if the document has not been saved or does not have a disk file associated with it. 我查了一下MSDN... 3Q,Hendy_So(横笛).......
CDocument::GetPathName可取得当前的文件路径,CFileDialog::GetPathName可以取出通过文件对话框选择的文件路径。
const CString& GetPathName( ) const;Return ValueThe document's fully qualified path. This string is empty if the document has not been saved or does not have a disk file associated with it.
我查了一下MSDN...
3Q,Hendy_So(横笛).......