Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TCHAR appPath[MAX_PATH+1];
if( GetModuleFileName(NULL, appPath, MAX_PATH) == 0 )
{
//failure
}
else
{
CString tmpStr(appPath);
int pos = tmpStr.ReverseFind((TCHAR)'\\');
if( pos == -1 )
{
// your EXE is in the root directory
}
else
{
appPath[pos] = (TCHAR)'\0'; // that's it!
}
}