Sign in to follow this  
Fish Fishes

DLL path+filename

Recommended Posts

How to get DLLs' path & filename? I'm having exe. And I'm loading a dll in it (like plugins). How to get dll's pathname from dll? I just know how to get filename: GetModuleFileName().

Share this post


Link to post
Share on other sites
GetModuleFileName() should give you the entire path and file name.
It might return a path relative the current directory, use GetCurrentDirectory() in that case.

Share this post


Link to post
Share on other sites
GetModuleFilename() SHOULD give you the path to the module, not just the filename. perhaps the path is relative to the current dir? in that case, _splitpath, _makepath and GetCurrentDirectory might be your friend?

edit: sorry about the repetition, i kinda cheked out the post and went for lunch ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this