一、
TCHAR exeFullPath[100];
GetModuleFileName(NULL,exeFullPath,100);
CString path=exeFullPath;
二、
CString strPath;
GetCurrentDirectory(MAX_PATH , strPath.GetBuffer(MAX_PATH));
strPath.ReleaseBuffer();
一、
TCHAR exeFullPath[100];
GetModuleFileName(NULL,exeFullPath,100);
CString path=exeFullPath;
二、
CString strPath;
GetCurrentDirectory(MAX_PATH , strPath.GetBuffer(MAX_PATH));
strPath.ReleaseBuffer();