win8_metro CCFileUtils_win8_metro.cpp: Get data from file failed!

CCTMXTiledMap *map = CCTMXTiledMap::tiledMapWithTMXFile(“TileMaps/iso.tmx”);
addChild(map, 0, 10);

CCSize s = map~~>getContentSize;
map~~>setPosition(ccp(-s.width/2,0));

It Always an error when I use the above method to read the map file. Someone can help me to solve this problem? thanks very much.

Same problem here with new Windows 8 RTM, with all kinds of files

The following line in CCFileUtils does not seem to work anymore:

hFile = ::CreateFile2(path.c_str(), GENERIC_READ, 0, OPEN_EXISTING, &extendedParams);

Error returned is: ERROR_ACCESS_DENIED

Found a solution:

Change the line to

hFile = ::CreateFile2(path.c_str(), GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, &extendedParams);

Then file loading should work again

Thanks! your solution works

thanks very much

thanks very much