代码改变世界

在C++ runtime component的C代码中操作WP8沙盒IsolatedStorage

2013-02-26 14:29  王妞  阅读(335)  评论(0)    收藏  举报

C#中
string ROOT_PATH = Windows.Storage.ApplicationData.Current.LocalFolder.Path; //get path of root
string filePath = ROOT_PATH + "\\test.txt";

我其中一个程序的ROOT_PATH是:"C:\\Data\\Users\\DefApps\\AppData\\{C664A6A2-B05C-41E1-B890-0301850AF934}\\Local"


通过C++ runtime component把filePath传进C代码,
然后,用fopen, fwrite这样的函数就可以处理了。