Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 985
user2219455 Avatar asked Nov 27 '25 16:11

user2219455


1 Answers

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 :)

like image 97
mostafa88 Avatar answered Nov 30 '25 07:11

mostafa88



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!