作者Uihc (我 有我的倔强...)
看板Programming
标题[VC] 取得指定目录下一层所有子目录名称
时间Tue May 29 17:09:59 2007
请教大家,我现在需要完成的功能,是用档案对话盒指定父目录後,
然後取得其下一层子目录的所有名称後输出为文字档
我的问题是:
1.用vc2005的档案对话盒应该设定什麽参数,在开启对话盒才可以只选目录而不是选档案?
2.我在网路上google之後,依照范例利用CFileFind去取得档名及目录名称
程式码
http://rafb.net/p/60Kk8o28.html
但是不晓得为什麽结果输出的名称如下所示,要怎麽做它才会显示正确的名称呢?
谢谢^^
find a Folder:003AA738
File a File:003AB250
File a File:003AB2E0
File a File:003AB250
File a File:003AB2E0
File a File:003AB250
File a File:003AB2E0
find a Folder:003AA850
File a File:003AB258
File a File:003AB2E8
File a File:003AB258
File a File:003AB2E8
File a File:003AB258
File a File:003AB2E8
find a Folder:003AA738
File a File:003AB250
File a File:003AB2E0
※ 编辑: Uihc 来自: 140.112.64.235 (05/29 17:10)