如何从DDK示例构建工作区?

发布于 2024-07-25 02:51:06 字数 134 浏览 2 评论 0原文

我是 win32 编程和驱动程序编程的新手。 我已经在我的系统上安装了 Windows DDK,并且有一些使用 DDK 的示例,但这些示例没有 dsw 文件。

我想知道如何创建 .dsw 文件,以便可以在 VC6 中打开该工作区。

I am new to win32 programming and also to driver programming. I have installed Windows DDK on my system and have got some examples with the DDK but those examples don't have dsw file.

I wanted to know how can I create .dsw file so that I can open that workspace in VC6.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

清欢 2024-08-01 02:51:06

大多数在 Visual Studio 中构建 DDK/WDK 项目的人都是使用调用 DDK 的 build.exe 实用程序的“makefile”项目来实现的。 这非常有效 - 您可以在使用标准的、受支持的 DDK 工具构建 DDK 项目时获得 Visual Studio 的代码导航功能。

请注意,DDK 附带了它自己的一组编译器,这些编译器应该用于构建 DDK 项目。

OSR 有一小组 .cmd 脚本,应该可以使这变得更容易(我已经好几年没有用这些脚本做过任何事情了;我真的不记得它们的工作效果如何):

Hollis Technology 提供了另一个类似的工具:

就调试而言,不幸的是 VS 调试器不适用于内核模式驱动程序调试。 为此,请获取 Windows 调试工具 软件包,该软件包具有出色的功能调试器集。 GUI 调试器 WinDbg 非常好用,尽管它不太符合 Visual Studio 的可用性。 调试工具的文档非常出色 - 只需阅读 WinDbg 文档,您就可以了解很多有关 Windows 内部的知识。

Most people who build DDK/WDK projects in Visual Studio do so using a 'makefile' project that invokes the DDK's build.exe utility. This works quite well- you get the code navigation capabilities of Visual Studio while building your DDK project using the standard, supported DDK tools.

Note that the DDK comes with it's own set of compilers, and those compilers should be used to build DDK projects.

OSR has a little set of .cmd scripts that is supposed to make this easier (it's been years since I've done anything with those; I really can't remember how well they work):

Another similar tool is available from Hollis Technology:

As far as debugging goes, unfortunately the VS debugger won't work for kernel mode driver debugging. For that, get the Debugging Tools for Windows package which has a great set of debuggers. The GUI debugger, WinDbg, is quite nice even if it's not quite up to the usability of Visual Studio's. And the documentation with the Debugging Tools is outstanding - you can learn a lot about Windows internals just by reading the WinDbg docs.

勿忘初心 2024-08-01 02:51:06

我上次查看时(那是几年前),您不使用 Visual Studio IDE 构建设备驱动程序:DDK 有自己的 build.exe 实用程序(类似的想法,但与 makefile 不同); 显然,截至 2008 年初,情况仍然如此,请参阅 http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/4382c9b66f8611e9?pli=1

我希望“如何构建” DDK文档中有描述。

注意:上述陈述在 XP DDK 和 Windows 7 WDK 之间均属正确。 自 Windows 8 WDK 与 Visual Studio 集成并使用其工具链以来,情况已不再如此。 同样,在 XP DDK 之前,Visual Studio 需要使用 DDK 进行构建。

The last time I looked (which was years ago), you don't build device drivers using the Visual Studio IDE: the DDK has its own build.exe utility (similar idea but not the same as makefiles); and apparently this is still true as of early 2008, see for http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/4382c9b66f8611e9?pli=1

I expect that "how to build" is described in the DDK documentation.

NB: the above statements were true between the XP DDK and Windows 7 WDK inclusive. It is no longer true since the Windows 8 WDK, which integrates with Visual Studio and uses its toolchain. Similarly, prior to the XP DDK, Visual Studio was required to build with the DDKs.

待天淡蓝洁白时 2024-08-01 02:51:06

ChrisW 是正确的,您不能使用 Visual Studio(除非有办法设置它)。

无论如何,为了开始调试,您可以使用 DebugView 打印简单的消息DbgPrint

ChrisW is correct, you can't use Visual Studio (unless there is a way to set it).

Anyway, for start debugging you can use DebugView to print simple messages with DbgPrint.

四叶草在未来唯美盛开 2024-08-01 02:51:06

我认为最好使用此工具与 Visual Studio 2005、2008 或 2010 集成:

http://visualddk .sysprogs.org/versions/1.5.6

I think better you integrate with Visual Studio 2005, 2008 or 2010 with this tool:

http://visualddk.sysprogs.org/versions/1.5.6

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文