mfc
文章平均质量分 73
我自我
这个作者很懒,什么都没留下…
展开
-
CString类为路径变量是后要相加带\\的路径不能叠加的解决办法
CString str1; CStringA str; LPITEMIDLIST pidl; LPMALLOC pShellMalloc; if (SUCCEEDED(&pShellMalloc)) { if (SUCCEEDED(SHGetSpecialFolderLocation(NULL,CSIDL_PERSONAL,&pidl))) { if(SHGetPathF...原创 2018-06-09 07:35:22 · 685 阅读 · 0 评论 -
MFC获取计算机中所有的盘符
UINT type; WCHAR name[]={L"C:"}; int i1=5; CString str,str1; while (wcscmp(&name[0],L"Z:")!=0) { type = GetDriveType(name); if (type==0) { str+=name; str+="盘为:"; str+=L"未知盘"; str+="...原创 2018-06-10 09:24:55 · 1118 阅读 · 0 评论