需要指导才能使用 VIX API 配置 Visual Studio 2012 编译器。我已经在装有 Windows 8 64 位操作系统的计算机上安装了 VIX API。
任何人都可以一步一步地告诉我如何:
- 设置编译器
- 编译样本
- 编译我自己的程序
我已经读过VMWare Reference guide用于 VIX API。
我们将不胜感激。
最佳答案
我的回答是基于 VMWare Reference guide 1- 您应该考虑的第一件事是您需要使用包装器库
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-如果要使用VS2008及以后的版本,必须使用动态库编译。
2.1-右击项目>>属性>>配置属性>>c/c++>>代码生成>>运行时库:设置为'多线程(/MT)'
2.2-右击Project >> propertice >> configuration propertice >> linker >> general >> Aditional library Directory:将vix的安装目录添加到该选项。例如:“C:\VMware_VIX”
2.3-在上面的路径中,勾选'link library dependencies'和'use library dependency inputs'选项为'yes'。
2.4-在上面的链接器路径中,链接器>>输入>>附加依赖项,添加这个'.lib'文件。
- VixAllProductsDyn.lib
- 内核32.lib
- user32.lib
- advapi32.lib
- ole32.lib
- oleaut32.lib
- ws2_32.lib
- shell32.lib
现在,点击“确定”。你可以编译并运行你的程序:)
关于c++ - 如何使用 Visual Studio 2012 c++ 为 VIX API 配置编译器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15680525/