13,826
社区成员
发帖
与我相关
我的任务
分享
UnicodeString PATH = "%PATH%";
wchar_t GetPathName[1024];
GetEnvironmentVariable(PATH.c_str(),GetPathName,1024);
UnicodeString strPath = GetEnvironmentVariable(L"Path");
ShowMessage(strPath);
UnicodeString PATH = "PATH";
UnicodeString GetPathName;
// wchar_t GetPathName[1024];
GetPathName = _wgetenv(PATH.c_str());
我又找到一个函数_wgetenv,能获取到的路径,但是没有找到我在设备管理器->环境变量->用户环境变量PATH设置的路径,
我是哪里搞错了?