Thanks Geoff
I'm sorry, but I couldn't figure it out in the end. Here's what I've done so far
compiled lua as dll: (set #define LUA_BUILD_AS_DLL), "import library" set to lua52.lib
compiled luasocket with lua52.dll and lua52.lib
now lua interpreter asks for lua52.dll when I type "local socket = require("socket.core")"
when I put lua52.dll near
the exe, I receive the same multiple lua vms detected error.
I guess I'm doing something blatantly wrong here but couldn't figure it out.