Created
October 26, 2016 13:18
-
-
Save z4none/19dbbb9a666c5b46c3a43fe8b8b08bf3 to your computer and use it in GitHub Desktop.
get application directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char path[MAX_PATH] = { 0 }; | |
| GetModuleFileNameA(NULL, path, MAX_PATH); | |
| strrchr(path, '\\')[0] = '\0'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment