Skip to content

Instantly share code, notes, and snippets.

@z4none
Created October 26, 2016 13:18
Show Gist options
  • Select an option

  • Save z4none/19dbbb9a666c5b46c3a43fe8b8b08bf3 to your computer and use it in GitHub Desktop.

Select an option

Save z4none/19dbbb9a666c5b46c3a43fe8b8b08bf3 to your computer and use it in GitHub Desktop.
get application directory
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