char buffer[MAX_PATH];
GetModuleFileNameA(NULL, buffer, MAX_PATH );
string::size_type pos = string( buffer ).find_last_of( "\\/" );
string currentPath = string(buffer).substr( , pos);
CHAR fullPath[MAX_PATH];
sprintf(fullPath ,"%s\\%s" ,currentPath.c_str() ,"Demo.exe");
05-18 12:24