WCHAR buffer[MAX_PATH];
    GetModuleFileName(NULL, buffer, MAX_PATH );
    wstring::size_type pos = wstring(buffer).find_last_of(TEXT("\\/"));
    WCHAR currentPath[MAX_PATH]=TEXT("");
    lstrcat(currentPath, wstring(buffer).substr(0, pos).c_str());

 

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案