取当前程序目录

CString CMediaplayerDlg::GetCurrentPath()
{

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

}

你可能感兴趣的:(目录)