windows 如何从 DDK 示例构建工作区?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/999514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to build workspace from DDK examples?
提问by Vinayaka Karjigi
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.
我是 win32 编程的新手,也是驱动程序编程的新手。我已经在我的系统上安装了 Windows DDK 并且有一些使用 DDK 的示例,但这些示例没有 dsw 文件。
I wanted to know how can I create .dsw file so that I can open that workspace in VC6.
我想知道如何创建 .dsw 文件,以便我可以在 VC6 中打开该工作区。
回答by Michael Burr
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.
大多数在 Visual Studio 中构建 DDK/WDK 项目的人都使用调用 DDKbuild.exe
实用程序的“makefile”项目。这非常有效 - 您可以在使用标准的受支持 DDK 工具构建 DDK 项目的同时获得 Visual Studio 的代码导航功能。
Note that the DDK comes with it's own set of compilers, and those compilers should be used to build DDK projects.
请注意,DDK 自带一套编译器,这些编译器应该用于构建 DDK 项目。
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):
OSR 有一小套 cmd 脚本,可以让这更容易(我已经好几年没有用它们做过任何事情了;我真的不记得它们的工作情况了):
Another similar tool is available from Hollis Technology:
Hollis Technology 提供了另一个类似的工具:
As far as debugging goes, unfortuantely the VS debugger won't work for kernel mode driver debugging. For that, get the Debugging Tools for Windowspackage 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.
就调试而言,不幸的是,VS 调试器不适用于内核模式驱动程序调试。为此,请获取Debugging Tools for Windows包,其中包含一组很棒的调试器。GUI 调试器 WinDbg 非常好,即使它不完全符合 Visual Studio 的可用性。调试工具的文档非常出色 - 只需阅读 WinDbg 文档,您就可以了解很多关于 Windows 内部的知识。
回答by ChrisW
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
我上次查看时(几年前),您没有使用 Visual Studio IDE 构建设备驱动程序:DDK 有自己的 build.exe 实用程序(类似的想法,但与 makefile 不同);显然这在 2008 年初仍然是正确的,请参阅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.
我希望 DDK 文档中描述了“如何构建”。
回答by arun kumar non ascii
I think better you integrate with Visual Studio 2005, 2008 or 2010 with this tool:
我认为最好使用此工具与 Visual Studio 2005、2008 或 2010 集成:
回答by Nick Dandoulakis
回答by 1800 INFORMATION
VC6 is very old these days, can't you use a newer version? Anyway, as I recall, you can just open the project file as a workspace, the IDE will create the .dsw file for you.
这些天VC6很老了,你不能使用更新的版本吗?无论如何,我记得,您可以将项目文件作为工作区打开,IDE 将为您创建 .dsw 文件。