
OfBinary.open(strOutputFileName, ios::out)

This is my call to ofstream with strOutputFileName containing a filename of a file I want to create in the Debug\UWPAA\AppX directory of the (UWPAA) application (I have tried other directories as well): std::ofstream ofBinary I do get a warning regarding the use of rescap:Capability in the manifest but the application compiles and hasn't restricted others (from what I read) from successfully accessing the file system. I have added the broadFileSystemAccess to the package manifest and enabled file system access for the entire system and for the application itself. I can successfully read in a file using std::ifstream from the same folder.


I receive a 0x0000005 (access denied) when calling GetLastError(). I cannot create a file using c++/winrt, uwp and std::ofstream.
