presumably the XS, Inline::C or Inline::CPP code was not built with Visual Studio
And nor would Win32::API have been built with Visual Studio.
This could definitely pose problems.
Could paulorfmmb please check which compiler is being used by perl. (Running perl -V:cc will provide that info.)
In fact, probably best to give us the full perl -V output.