実行ファイルのPATHは、GetModuleFileName()関数で取得可能です。
#include <tchar.h>
#include <iostream>
#include "windows.h"
/*
実行ファイルのPATHを取得する
*/
int _tmain
(
int argc
, _TCHAR* argv[]
)
{
TCHAR waFilePath[ MAX_PATH ];
// 実行ファイルのPATH名を得る
::GetModuleFileName( NULL, waFilePath, MAX_PATH );
// 取得したパスを出力
std::wcout << waFilePath << std::endl;
}
c:\OrgApps\Fav\WabisabiSampleSource\Tools\test\AppTest.exe