CString ClassName::getAppExePath()
{
CString path;
GetModuleFileName(NULL,
path.GetBufferSetLength(MAX_PATH + 1), MAX_PATH);
path.ReleaseBuffer();
int nPos = path.ReverseFind('\\');
return path.Left(nPos + 1);
}
沒有留言:
張貼留言