C++获取插件路径比较简单,但是是调用了windows的
LPTSTR moduleName = new TCHAR[100];
GetModuleFileName(GetModuleHandle(_T(“npTestDemoOne.dll”)),moduleName,100);
std::string mPath = std::string(moduleName);
C++获取文件路径
最新推荐文章于 2024-12-13 11:40:39 发布