Has anyone been able to load images in Win8 using CCImage? I can only load images that are included in the project, but nothing selected from the FileOpenPicker.
I can successfully use the FileOpenPicker to select a file and return the full path, (e.g. C:.jpg).
The call “CreateFile2” in CCFileUtils_win8_metro.cpp fails with ERROR_ACCESS_DENIED.
This function does work with files that are included in the project, so it appears to be a permission issue.
In the package manifest, I added the “Documents Library” capability, then added File Type Associations for .jpg, .jpeg, and .png in the Declarations tab.
I’ve searched the google and haven’t found any clues. Every example I’ve seen has the same syntax:
hFile = ::CreateFile2(path.c_str(), GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, &extendedParams);
I’ve tried both Local Machine and Simulator (Win32) and get same error.
Any help would be appreciated!