在Windows 8 C ++应用程序中,我想加载一个不属于project / app包的字符串资源文件。这可能吗?
不幸的是,这不起作用:(我想我已经知道项目之外的文件不允许LoadPriFiles()
)
StorageFolder^ folder = ApplicationData::Current->LocalFolder;
String^ path = folder->Path + "\\Strings\\en-US\\res.resw";
task<StorageFile^>(StorageFile::GetFileFromPathAsync(path)).then([&, this] (StorageFile^ file)
{
Vector<IStorageFile^>^ files = ref new Vector<IStorageFile^>();
files->Append(file);
String^ p = files->GetAt(0)->Path;
Core::ResourceManager::Current->LoadPriFiles(files);
});