Cocos2dx for win8 编译通过,无法运行的解决办法

下载了cocos2d-x for win8,在公司电脑运行demo没有问题,可是到家里之后,发现总是直接崩溃,搜索到了解决方案记录如下:

there's a problem with each call of CreateFile2 when you read a file.
You have to change the dwShared parameter from 0 to FILE_SHARE_READ :)

具体的位置是:

cocos2d-x-for-win8\cocos2dx\platform\win8_metro\CCFileUtils_win8_metro.cpp

cocos2d-x-for-win8\cocos2dx\platform\win8_metro\BasicReaderWriter.cpp

这里是读文件的问题,写暂时还没看,

参考链接:

http://www.cocos2d-x.org/boards/6/topics/17902

http://stackoverflow.com/questions/12152096/createfile2-returns-access-denied-error-in-windows-8

原文地址:https://www.cnblogs.com/jeekun/p/2923381.html