在 VC++ 程序中使用 WinPcap [英] Using WinPcap in VC++ programs

查看:53
本文介绍了在 VC++ 程序中使用 WinPcap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Visual C++ 程序之一中包含 WinPcap 库,并且我正在使用 Visual Studio 10终极.

I am trying to include WinPcap library in one of my Visual C++ program and I am using Visual Studio 10 Ultimate.

文档中说

要添加预处理器定义,您必须从项目菜单,然后从左侧的列表控件,以及在预处理器类别下,您必须在下面添加定义预处理器定义文本框.

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

我已经成功执行了这一步,然后

I have performed this step successfully, then

要向项目添加新库,您必须从项目菜单,然后从左侧的列表控件,以及在类别输入下添加名称在附加的新图书馆依赖项文本框.

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

现在我在执行第三步时遇到问题.

Now I have problem while performing the third step.

添加一个新路径,MicrosoftVisual Studio 将查找库,您必须选择选项从工具菜单,然后项目和从列表控件上解决左边,VC++目录,然后选择Show 目录中的库文件对于组合框,并添加路径下面的框.

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++ 目录.

Tools -> Options -> Project and Solutions -> VC++ Directories.

这里说工具 > 选项中的 VC++ 目录编辑已被弃用.

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

Now where is this user property sheet located ? Can some one point me in a right direction?

谢谢.

推荐答案

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

It is now a project property and located in project properties -> VC++ Directories.

这篇关于在 VC++ 程序中使用 WinPcap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆