Andreas Goebel schrieb: > Simon Hammett schrieb: >> On windows you can call GetModuleFileName which retrieves the fully >> qualified path to the dll/exe >> in which the calling function resides. >> > Sadly no, it returns the path to firefox.exe, already tried that.
Did you look for the current directory? I'd guess the Plugin Manager sets it to the plugin dir. Otherwise if you can't get the DLL instance of your plugin to pass to GetModuleFileName(), you can try another trick: HINSTANCE handle =LoadLibrary( name of your plugin dll here ); if (handle) { GetModuleFileName(handle, filename, sizeof(filename)); PathRemoveFileSpec(filename); FreeLibrary(handle); } This should work because the list of loaded DLLs is searched first by LoadLibrary(). regards Ralph _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org