Finding file size windows MFC application

情到浓时终转凉″ 提交于 2019-12-22 14:06:08

问题


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 );


来源:https://stackoverflow.com/questions/1801914/finding-file-size-windows-mfc-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!