Hier ist mein Code:-< /p>
Code: Select all
bool CreateRestrictedFile(std::wstring& localFilePath) { // Step 1: Get the .hex file path wchar_t filePath[MAX_PATH];
if (SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, filePath) != S_OK) {
std::cerr
Code: Select all
bool CreateRestrictedFile(std::wstring& localFilePath) { // Step 1: Get the .hex file path wchar_t filePath[MAX_PATH];
if (SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, filePath) != S_OK) {
std::cerr