取当前程序目录

来源:互联网 发布:新网互联域名 编辑:程序博客网 时间:2024/04/30 05:47

CString CMediaplayerDlg::GetCurrentPath()
{

 wchar_t wcurPath[MAX_PATH];
 memset(wcurPath,0,MAX_PATH);
 GetCurrentDirectory(MAX_PATH,wcurPath);
 CString pStrPath;
 pStrPath.Append(wcurPath);
 return pStrPath;
 
}