Sign in to follow this  

PathRemoveFileSpec - Problem

This topic is 4855 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

I am using GetModuleFileName to retrieve the current path of the .exe, and then am attempting to use PathRemoveFileSpec to get rid of the filename part leaving only the directory. (This is to get the directory of the rest of the files). Now, using GetModuleFileName works fine, but I get this weird error when I use PathRemoveFileSpec: main.obj : error LNK2001: unresolved external symbol __imp__PathRemoveFileSpecA@4 Debug/Mapper.exe : fatal error LNK1120: 1 unresolved externals I included the "shlwapi.h". Could the problem be that the filename for GetModuleFileName is a TCHAR, might that be what is throwing off the program? -Stumped again :(

Share this post


Link to post
Share on other sites

This topic is 4855 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