CString strExePath;
LPTSTR szExePath = strExePath.GetBuffer(512);
::GetModuleFileName(AfxGetInstanceHandle(), szExePath, 512);
strExePath.ReleaseBuffer();
MFC获得当前运行程序的路径
最新推荐文章于 2024-07-01 19:04:32 发布
CString strExePath;
LPTSTR szExePath = strExePath.GetBuffer(512);
::GetModuleFileName(AfxGetInstanceHandle(), szExePath, 512);
strExePath.ReleaseBuffer();