using native c fopen in metro style app RRS feed

  • Question

  • hello ~ 

    these day i study using native c code in metro style app for making dll lib.

    i use code fopen by using filepicker (the method i use file pick from Music lib folder and then copy the file to templary folder and i open the file by using fopen (native c code) ).

    is this possible ?? if possible can you  teach me how to use .



    Friday, July 6, 2012 1:26 AM


  • Hi Ben_digi,

    Yes , you can use fopen() from Metro style apps.

    As you know Metro style apps cannot have privilege to access file system.

    So if you try to open a file from local drives you will get "Access Permission Denied" error.

    Please note from following locations you can open files using 'fopen()'.

     1.Install folder of application.

     2.Appdata folder of application.



    • Edited by BhashTech Saturday, July 7, 2012 6:26 AM
    • Marked as answer by ben_digi Monday, July 9, 2012 9:32 AM
    Saturday, July 7, 2012 6:25 AM

All replies