So, to get your project to compile in visual studio 2015 I had to:
- disable precompiled headers
- add libmysql.lib to to the linker options of all Build-targets in x86/x64
- cast GetModuleHandle((LPCSTR)"uo_game_mp_x86.dll");
It compiles without errors then. If I maybe have time ill lokk into your dllmain issue