DDK环境配置 for (VS.NET)

来源:互联网 发布:办公软件是什么 编辑:程序博客网 时间:2024/06/05 06:02
郁闷死,不过由于问题解决了,很开心就急急忙忙的 给大家发过来

我知道大家写DDK的时候可能都用记事本写那样太不效率  

而且还常常有错误  很少数用VS.NET写DDK

下面我来说下 配置VS.NET  首先 先把包含目录设置好  我安装的是DDK 2003

当然 LIB目录也要添加 的 然后我们新建个项目WIN32的  然后选什么都行 别忘记吧空项目选上

然后选择解决方案管理器 选择你的工程属性  然后看看下面的配置图


最后在连接器->高级里的命令行添加 :/DRIVER /subsystem:native /SECTION:INIT,D /IGNORE:4078  /IGNORE:4078

我推荐不嵌入清单 这样可减少程序的大小

这些配置解决了很多文件 可能有的人已经配置这样了但是 不能用 __try __except

在这里已经解决了  注意哦 DriverEntry前面  一定要加extern "C"   调用约定一定是_stdcall

OVER..
 
 
 
 
 
 
 
 
 
 http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/常规设置.jpg
 
 http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/代码生成.JPG
 
 http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/高级设置.JPG
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/连接器常规.JPG
 
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/连接器-高级.JPG
 
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/连接器输入.JPG
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/配置包含目录.JPG
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/系统.JPG
 
http://p.blog.csdn.net/images/p_blog_csdn_net/Deepest_Ice_Blue/EntryImages/20090610/预处理器.JPG
原创粉丝点击