Qt WinRT App cannot access file permission denied

后端 未结 1 1977
孤独总比滥情好
孤独总比滥情好 2021-01-28 19:50

I need to develop WinRT App using Qt and FFMPEG, I build the ffmpeg for WinRT based on the instruction here and I am able to link the library with my project. Now I need to ope

相关标签:
1条回答
  • 2021-01-28 20:37

    Try to add a file protocol to the manifest page, contains your file extension you want to access/ create or play with..

    for example, .xml, .txt, .etc..

    I always face this 'unknown' error when try to access files without adding the ext file protocol..

    UPDATE: More Information: https://msdn.microsoft.com/library/windows/apps/hh464906.aspx#file_activation

    Do it by: Package.appxmanifest > Declarations > Add a 'File Type Association' > your type name and ext. is required.

    Example in a code:

      <Extensions>
        <uap:Extension Category="windows.fileTypeAssociation">
          <uap:FileTypeAssociation Name="myfile">
            <uap:SupportedFileTypes>
              <uap:FileType>.config</uap:FileType>
            </uap:SupportedFileTypes>
          </uap:FileTypeAssociation>
        </uap:Extension>
      </Extensions> 
    

    Change 'myfile' and '.config'

    Good luck!

    0 讨论(0)
提交回复
热议问题