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.
#include <windows.h>
#include <cstring>
#include <string>
string GetMyPath()
{
char path[MAX_PATH];
if (GetModuleFileName(0,path,sizeof path))
{
char* p = strrchr(path,'\\');
if (p)
*p = 0; // or p[1] = 0 for trailing backslash...
}
else path[0] = 0; // Alas, a very strange error...
return path;
}