I‘m writing a file transfer program in C++ on Unix that works via TCP Sockets. But whenever the client receives the binary bytes and tries to save them into a file, then I‘m asked whether I allow the program to access the Desktop. If the user denies access, then how do you catch this exception ?
FILE *binaryFile = fopen(absolutePath, “wb“);
fwrite(&buffer, sizeof(buffer), 1, binaryFile);
Do you have any ideas, websites ... ?
Thx