win8 api link error in lua

I got “Unresolved external symbol GetModuleFileNameA” when I complied the solution.
It’s a win api and I already add $(WindowsSDK_LibraryPath_x86) in the libary direction,
and also add kernel32.lib link but still got the same error. :frowning:
Can anyone help me

If you’re building for Win8 Metro, I believe that is not allowable.
Sorry, that was not the right answer.

Hi cp, for win8 metro, please use this branch

Hi, Walzer , These is the branch I used for. But there seems to be no lua, so I
add the lua files from the cocos2d-1.0.1-x-0.12.0 into the solution.
But I got this error when I compiled.
“Unresolved external symbol GetModuleFileNameA” , Make me crazy.
Is there lua to be support in win8?

Walzer Wang wrote:

Hi cp, for win8 metro, please use this branch
https://github.com/cocos2d-x/cocos2dx-win8

Maybe I used the old one , I’ll try it now first :slight_smile:

Walzer Wang wrote:

Hi cp, for win8 metro, please use this branch
https://github.com/cocos2d-x/cocos2dx-win8

I try the latest branch, but still no work.
I found the problem is the api GetModuleFileNameA doesn’t support by Metro app,
and also the LoadLibraryA api function.
So does it means lua is no supportted by win8 metro now?

Walzer Wang wrote:

Hi cp, for win8 metro, please use this branch
https://github.com/cocos2d-x/cocos2dx-win8