After the latest update of x264 you can build static library usable by MSVS project. For such library compilation you will need:
- MSYS and MSVS 2013 Update 2 (express version [for Windows Desktop] would also work if you install Update 2)
- run "VS2013 x86 Native Tools Command Prompt" or "VS2013 x64 Native Tools Command Prompt" depending what version (32 or 64-bit) you want to build
- change dir to x264 path and run MSYS shell (sh)
- from shell run "CC=cl ./configure --disable-cli --enable-static" for x264 configuring
- run "make" which should build libx264.lib usable from MSVS
P.S. MSVS builds would be a little bit slower than one build by MinGW