Hi, the mex file is compiled from C++ source code. The MexMain.mexw64 file is compiled for Windows 64bit platform. I do suggest that you use Windows 64bit. What version of Matlab do you use?