Today try to build yourself a Cocos project before building the project somehow can't run, hint:
Now try to find out where the problem lies.
Found a strange phenomenon, is the build of the independent CPP project generated by the program, in the VS12 can not run, and in the Explorer double-click EXE program to run. It is often found that if you delete the Zlib1.dll file, you cannot run it in the resource manager.
The initial judgment is that when the VS load DLL, Zlib1.dll is replaced with another file of the same name, and there is no InflateReset2 function in the DLL with the same name (maybe the version is different?). )。
Look at the VS Output window, found loaded SysWOW64 inside the DLL, so go to the directory a search, sure enough to find a zlib1.dll, delete, normal.
The conclusion is that when the VS load DLL, the search path is to go to SysWOW64, System32 such directories to find, and then in the current directory (generally, the. VC (x) proj file directory) to find.
But why does the sample project in the Cocos project not have this problem? It's still not clear.
From for notes (Wiz)
Unable to locate the program input point problem