1 //
 2 //    函数        --        GetAppPath()
 3 //
 4 //    功能        --        获取程序的当前路径(路径中带"\\", 不含执行文件名称"\\xx.exe")
 5 //
 6 //    注释        --        
 7 //                         <1>. #include <direct.h>
 8 //                         <2>. _getcwd();                    获取程序当前路径
 9 //
10 CString GetAppPath()
11 {   
14     char szPath[100];
15     ZeroMemory(szPath, 100);
16     _getcwd(szPath, 100);
17     CString strPathName(szPath);
19     return strPathName;
20 }

 

相关文章:

  • 2021-05-25
  • 2021-11-21
  • 2022-12-23
  • 2021-09-23
  • 2021-07-27
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-09-26
  • 2021-12-17
相关资源
相似解决方案