linux:linux
char exec_name [BUFSIZ];windows
readlink ("/proc/self/exe", exec_name, BUFSIZ);path
windows:
TCHAR exepath[MAX_PATH]={0};
::GetModuleFileName(NULL,exepath,MAX_PATH);