lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hello all,
I've tried to compile Lua 5.1.1 with MS VisualStudio 2005.
It turned out that among other changes from VS2003,
now by default the IDE generates projects tailored for
using UNICODE Win32 API functions. Unfortunatelly,
in loadlib.c these functions receive char* arguments.
I quickly fixed these replacing
GetModuleFileName with GetModuleFileNameA,
FormatMessage with FormatMessageA and
LoadLibrary with LoadLibraryA.
Perhaps the official distribution can use these changes
or at least warn the programemr in the INSTALL file.
regards,
Todor