2013年3月9日

Windows下列出所有文件 FindFirstFile

摘要: #include <windows.h>#include <tchar.h> #include <stdio.h>#include <strsafe.h>#pragma comment(lib, "User32.lib")void DisplayErrorBox(LPTSTR lpszFunction);int _tmain(int argc, TCHAR *argv[]){ WIN32_FIND_DATA ffd; LARGE_INTEGER filesize; TCHAR szDir[MAX_PATH]; size_t l 阅读全文

posted @ 2013-03-09 19:12 cv_ml_张欣男 阅读(234) 评论(0) 推荐(0) 编辑

(转)记录:VC++中打开保存目录选择对话框操作

摘要: //打开文件对话框const char pszFilter[] = _T("EXE File (*.txt)|*.txt|All Files (*.*)|*.*||");CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRIT... 阅读全文

posted @ 2013-03-09 19:09 cv_ml_张欣男 阅读(200) 评论(0) 推荐(0) 编辑

导航