我想包括 WinPcap我的 Visual C++ 程序之一中的库,我使用的是 Visual Studio 10 Ultimate。
在 documentation它说
To add a preprocessor definition, you must select Properties from the Project menu, then select C/C++ from the list control on the left, and under the category Preprocessor, you must add the definition under the Preprocessor Definitions text box.
项目 -> 属性 -> C/C++ -> 预处理器 -> 预处理器定义 -> 添加
WPCAP
我已经成功执行了这一步,然后
To add a new library to the project, you must select Properties from the Project menu, then select Linker from the list control on the left, and under the category Input add the name of the new library in the Additional Dependencies text box.
项目 -> 属性 -> 链接器 -> 输入 -> 附加依赖项 -> 添加
wpcap.lib
现在我在执行第三步时遇到问题。
To add a new path where Microsoft Visual Studio will look for the libraries, you must select Options from the Tools menu, then Project and Solutions from the list control on the left, VC++ Directories, then choose Library Files in the Show directories for combobox, and the add the path in the box below.
工具 -> 选项 -> 项目和解决方案 -> VC++ 目录。
这里说工具 > 选项中的 VC++ 目录编辑已被弃用。
现在这个用户属性表在哪里?有人能指出我正确的方向吗?
谢谢。
最佳答案
它现在是一个项目属性,位于项目属性 -> VC++ 目录中。
关于visual-studio-2010 - 在 VC++ 程序中使用 WinPcap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5218929/