return -1; /* Path Lookup Failed */
}
+std::string System::GetDllAppPath(std::string nomdll){
+ std::string path = ".";
+#ifdef WIN32
+ char currentPath[_MAX_PATH];
+ HMODULE hand = GetModuleHandle(nomdll.c_str());
+ GetModuleFileName(hand, currentPath, _MAX_PATH);
+
+ path = currentPath;
+ path = path.substr(0,path.find_last_of("\\"));
+#endif
+ return path;
+}
} // namespace crea