How to get the path of executable/process?

Printer-friendly versionPDF versionCheck the newer API in wxWidgets 2.8: wxStandardPaths::GetExecutablePath.