How to configure compiler for VIX API with Visual Studio 2012 c++?

852 Views Asked by At

Guidance is required to configure Visual Studio 2012 compiler with VIX API. I have already installed VIX API on my computer with Windows 8 64bit operating system.

Can anyone show me step by step how to:

  • setup the compiler
  • compile samples
  • compile my own program

I have already read VMWare Reference guide for VIX API.

Any help will be appreciated.

1

There are 1 best solutions below

0
mostafa88 On

My answer is based on the VMWare Reference guide 1- the first thing you should consider is that you need to work with wrapper library

If you do not use the wrapper, you need to link the appropriate Vix libraries for the VMware product to which your Vix program connects.

2- if you want to work with VS2008 and later version, you must use compile with Dynamic lib.

2.1- righClick on Project >> propertice >> configuration propertice >>c/c++ >> code generation >> runtime library: set to 'Multi-threaded(/MT)'

2.2- righClick on Project >> propertice >> configuration propertice >> linker >> general >> Aditional library Directory: add installed directory of vix to this option . for example:"C:\VMware_VIX"

2.3- in the above path, check 'link library dependencies' and 'use library dependency inputs' option to 'yes'.

2.4- in above linker path, linker >> input >> additional dependencies , add this '.lib' files.

  • VixAllProductsDyn.lib
  • kernel32.lib
  • user32.lib
  • advapi32.lib
  • ole32.lib
  • oleaut32.lib
  • ws2_32.lib
  • shell32.lib

now , click 'ok'. you can compile and run you program :)