给讲下这个函数的用法

sanfenxiao 2005-07-19 02:51:07
CFile GetFileName(),GetFileTitle()的区别和使用方法
还有GetLength()的用法
给出参数及返回值得说明,或者给个网址,我自己查看。
谢谢!
...全文
127 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2005-07-19
  • 打赏
  • 举报
回复
感觉还是安装msdn方便 把光标放在不明白的地方 按一下F1就行啦

还有

GetFilePath()
return
c:\windows\write\myfile.wri

去msdn上找吧
handsomerun 2005-07-19
  • 打赏
  • 举报
回复
这些msdn上都会有的,呵呵
handsomerun 2005-07-19
  • 打赏
  • 举报
回复
哈哈,楼主真可爱
sanfenxiao 2005-07-19
  • 打赏
  • 举报
回复
算错啦!唉,小学数学俺都没学好哪
sanfenxiao 2005-07-19
  • 打赏
  • 举报
回复
LeXLe(乐乐)说的也很好,给了中文MSDN的网址,那,一人4分吧
别嫌少,是个心意啊
sanfenxiao 2005-07-19
  • 打赏
  • 举报
回复
两位说的好,毛毛解答的很详细,所有得12分。
谢谢两位!
「已注销」 2005-07-19
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/library/chs/

handsomerun 2005-07-19
  • 打赏
  • 举报
回复
同意楼上的,楼主看msdn好了,呵呵
handsomerun 2005-07-19
  • 打赏
  • 举报
回复
CFile::GetFileName
Call this member function to retrieve the name of a specified file. For example, when you call GetFileName to generate a message to the user about the file c:\windows\write\myfile.wri, the filename, myfile.wri, is returned.

就是说
文件 c:\windows\write\myfile.wri
返回 myfile.wri


CFile::GetFileTitle
Call this member function to retrieve the file title for a specified file. For example, when you call GetFileTitle to generate a message to the user about the file c:\windows\write\myfile.wri, the file title (myfile) is returned.


就是说
文件 c:\windows\write\myfile.wri
返回 myfile


CFile::GetLength
This method obtains the current logical length of the file in bytes, not the amount

获取文件的大小
用字节来表示
flyelf 2005-07-19
  • 打赏
  • 举报
回复
msdn上有详细的说明

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧