I'm new to this forums, and I'm trying to figure out a way to force save over a read-only file when utilizing a IFileSaveDialog. Originally I thought maybe there was an option that I can set via IFileDialog::SetOptions that would bypass the error messagebox that appears when I select a read-only file to save over so that I can then use SetFileAttributes() to remove the read-only attribute from the selected file. Unfortunately, I was not able to find this option, as I tried both FOS_NOTESTFILECREATE and FOS_NOINVALIDATE.
Here is the portion of code that I believe is pertinent to my question. Let me know if you want to see anything else. Appreciate any advice you can provide! Thanks!