Where is my program running from?


Another common question: "How do I find out where my program is? I want to be able to access support files in that same directory."

Answer: GetModuleFileName(NULL, ...).

Comments (1)
  1. It could in principle be anything.

Comments are closed.