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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
To get all your info in one shot, use:
CFileStatus filestatus;
CFile::GetStatus( filename, filestatus );