TCHAR szStylesPath[_MAX_PATH];
VERIFY(::GetModuleFileName(
AfxGetApp()->m_hInstance, szStylesPath, _MAX_PATH));
m_strStylesPath = szStylesPath;
int nIndex = m_strStylesPath.ReverseFind(_T('\\'));
if (nIndex > 0) {
m_strStylesPath = m_strStylesPath.Left(nIndex);
}
else {
m_strStylesPath.Empty();
}
代码片断
最新推荐文章于 2021-04-22 15:55:21 发布