CString转换成pidl路径
来源:互联网 发布:软件通用质量特性 编辑:程序博客网 时间:2024/04/30 23:38
从MFC的CShellManager类中找到的一个方法:
HRESULT CShellManager::ItemFromPath(LPCTSTR lpszPath, LPITEMIDLIST& pidl){ENSURE(lpszPath != NULL);LPSHELLFOLDER pDesktopFolder;HRESULT hr = SHGetDesktopFolder(&pDesktopFolder);if (FAILED(hr)){return hr;}OLECHAR olePath [MAX_PATH];// IShellFolder::ParseDisplayName requires the file name be in// Unicode.#ifdef _UNICODElstrcpy(olePath, lpszPath);#elseMultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, lpszPath, -1, olePath, MAX_PATH);#endif// Convert the path to an ITEMIDLIST.ULONG chEaten;ULONG dwAttributes;hr = pDesktopFolder->ParseDisplayName(NULL, NULL, olePath, &chEaten, &pidl, &dwAttributes);pDesktopFolder->Release();return hr;}
- CString转换成pidl路径
- PIDL
- cstring 转换成 COleDateTime
- _vartiant_转换成CString
- VARIANT 转换成 CString
- CString转换成int
- string转换成CString
- CString 转换成 wchar_t
- Cstring转换成String
- Cstring转换成String
- CString转换成double
- CString转换成int
- char[] 转换成cstring
- CString转换成CTime
- CString 转换成string
- CString 转换成string
- char[] 转换成cstring
- CString 转换成 VARIANT
- 分享一下linux下的两个有用的工具, 搜索 工具 synapse , xrdp 远程连接工具
- 解决IE6-IE8 Js代码不执行问题
- php基础系列:从用户登录处理程序学习mysql扩展基本操作
- 利用SharedPreferences实现登录用户信息保存
- Android图形图像处理之Bitmap和BitmapFactory
- CString转换成pidl路径
- html 空白页面
- 兔子的烦恼(一)【NYOJ】
- Heap updates are NOT ENABLED
- WCF及log配置信息
- JS编码,解码. asp.net(C#)对应解码,编码
- Android 自动获取经纬度,计算距离、经纬度、方位角
- C#学习记录二:高级数据存储方式
- Oracle笔记(七) 数据更新、事务处理、数据伪列