visual-studio-2010 - 在 VC++ 程序中使用 WinPcap

标签 visual-studio-2010 visual-c++ winpcap

我想包括 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++ 目录编辑已被弃用。

enter image description here

现在这个用户属性表在哪里?有人能指出我正确的方向吗?

谢谢。

最佳答案

它现在是一个项目属性,位于项目属性 -> VC++ 目录中。

关于visual-studio-2010 - 在 VC++ 程序中使用 WinPcap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5218929/

相关文章:

c++ - 编译 Protocol Buffer 生成的源文件时,是否有更好的方法来解决警告?

c++ - 有人能告诉我为什么在输入 'y' 继续后我会卡在验证循环中吗?

c - Winpcap MinGW编译错误

c++ - WinPcap 的链接器错误

c - 无法编译 super 简单的代码

c# - 无法使用C#连接到其他机器的mysql服务器?

c++ - 如何避免在 std::modf 中使用临时变量?

c++ - 一台设备上同时有两个 pcap_compile() ?

asp.net - 无法找到 asp.net 工作进程

visual-studio-2010 - tfs 2010、Visual Studio 2010 和使用自签名证书的 HTTPS