查找Windows MFC应用程序的文件大小 [英] Finding file size windows MFC application
本文介绍了查找Windows MFC应用程序的文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Windows MFC应用程序.我正在设计中准备一份报告清单
我可以使用CListCtrl
列出文件的名称,大小,类型和修改日期.我不知道如何显示文件的大小.有人知道该怎么做吗?
I am working on a Windows MFC application. I am preparing a report list in my design
using CListCtrl
were I can list the name, size, type and modified date of the file. I do not know how to display the size of a file. Do any one know how to do that?
推荐答案
要一次性获取所有信息,请使用:
To get all your info in one shot, use:
CFileStatus filestatus;
CFile::GetStatus( filename, filestatus );
这篇关于查找Windows MFC应用程序的文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文