Change the calling convention from __cdecl to __stdcall.
in Configuration -> C/C++ ->Advanced -> Calling Convention