В кодировке Много-байтовой:
#include <iostream>
#include <windows.h>
#include <string>
/* путь возвращения ...\Debug\TestThread.exe */
std::string ExePath() {
char buffer[MAX_PATH];
GetModuleFileName(NULL, buffer, MAX_PATH);
std::string::size_type pos =...