niluo
#1
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
Obg1
#4
Thanks! your solution works