0. Environment
Windows 8.1 Pro x64
Matlab R2013a 32-bit (installed in "F:\ProgramFiles_x86\MATLAB\R2013a")
Visual Studio 2012 x86
1.1 Creat a project
1.2 "Properties" - "Configuration Properties" - "VC++ Directories" - "Include Directories"
Add "F:\ProgramFiles_x86\MATLAB\R2013a\extern\include"
1.3 "Properties" - "Configuration Properties" - "VC++ Directories" - "Library Directories"
Add "F:\ProgramFiles_x86\MATLAB\R2013a\extern\lib\win32\microsoft"
1.4 "Properties" - "Configuration Properties" - "Linker" - "Input" - "Additional Dependencies"
Add "libeng.lib" and "libmx.lib"
http://www.cnblogs.com/yingying0907/archive/2012/09/27/2705048.html
(This article is from http://www.cnblogs.com/chenyineng/p/3500665.html, and belongs to http://chenyineng.cnblogs.com and http://www.chenyineng.info)