Sign in to follow this  

DLL path+filename

This topic is 4561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

This topic is 4561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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