Jump to content
  • Advertisement
Sign in to follow this  

PathRemoveFileSpec - Problem

This topic is 5197 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!