We have an old C++ application that reads and writes files on a file server using a hard coded UNC path. IT wants to migrate the file server to a distributed file system. I have just replaced the file server UNC path with the dfs namespace, but this does not work - fopen fails. Is this a DFS setup topic or do I need to address this in my application?
const char* userPath = "\\\\zher.domain.com\\share\\myAppsData\\users.dat";
FILE* fp;
errno_t err = fopen_s(&fp, userPath , "rb");