In one place I want to get the file path of the program as a std::string, so I use this function:
GetModuleFileName(NULL, path, MAX_PATH);
However the GetModuleFileName function will not take the path variable. It says "argument of type char * in incompatible with with parameter of type LPSWSTR
What's the right way to do this?