Qt WinRT App cannot access file permission denied

后端 未结 1 1992
孤独总比滥情好
孤独总比滥情好 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:

      
        
          
            
              .config
            
          
        
       
    

    Change 'myfile' and '.config'

    Good luck!

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