如题:
能具体的说一下吗
有个例子更好thanks
能具体的说一下吗
有个例子更好thanks
解决方案 »
- DirectShow MPEG4网络传输问题
- 怎样使用C++来设置环境变量的问题
- Access时间类型,保存的值必须要精确到毫秒
- 各位大哥,帮帮忙,看看有关对话框的问题?
- recv()不能接收到数据,急,在线等,马上给分!!!
- 如何在单文档程序的标题栏产生两个按扭?
- vc里除了edit box ,还有什么edit的控件吗?
- 不用mfc如果把年月日取出来组成一个字符串?
- 一个问题:出现“该程序执行了非法操作,即将关闭。如果仍有问题,请与程序提供商联系“该怎么办
- WIN2000中如何使用Openprocess函数?高手救我!
- 怎么实现鼠标移到一Static改变其它值为其它?
- 实力强的QQ群,程序员在深圳群有5个群(人数早已超过一千人),云集了深圳范围内的软件精英
GetShortPathName(szExePath,sPath,MAX_PATH);
相信你也见过,知道这个也就好理解这个方法的用法了。
DWORD GetShortPathName(
LPCTSTR lpszLongPath, // null-terminated path string 原来的长文件名
LPTSTR lpszShortPath, // short form buffer 转换后的输出的短文件名
DWORD cchBuffer // size of short form buffer 短文件名缓冲区长度
);
CString szLongPath = "C:\\Program Files\....";
char pszShortPath[_MAX_PATH] = {0};
DWORD dwRet = GetShortPathName(szLongPath, pszShortPath, _MAX_PATH);
LPCTSTR lpszLongPath, // pointer to a null-terminated path string
LPTSTR lpszShortPath, // pointer to a buffer to receive the
// null-terminated short form of the path
DWORD cchBuffer // specifies the size of the buffer pointed
// to by lpszShortPath
);