您好,欢迎访问一九零五行业门户网

关于Driver Studio 3.2 的安装详解

http://topic.csdn.net/u/20081101/11/8822fedf-609d-4982-847f-a2bb821385c2.html?seed=1148906615 关于driver studio 3.2 的安装详解 经过对vc、winddk、driver studio这三个软件反复的安装,终于可以使driver studio能在vc环境下正常编译了。俗话说久病成
 http://topic.csdn.net/u/20081101/11/8822fedf-609d-4982-847f-a2bb821385c2.html?seed=1148906615
关于driver studio 3.2 的安装详解
经过对vc、winddk、driver studio这三个软件反复的安装,终于可以使driver studio能在vc环境下正常编译了。俗话说久病成医,遇到的问题多了,自然就有了很多解决问题的方法,现在拿出来和大家一起分享一下。
1、分别安装vc、winddk、driver studio,为:vc-〉winddk-〉 driver studio。其实顺序也可以变一下的,笔者曾试过vc-〉 driver studio -〉winddk,没问题的,但最好按建议顺序安装;
2、注意安装ddk时,建议将例子等全部安装,否则driver studio编译时会提示缺少头文件;
3、在vs2005环境下,安装driver studio时会有对话框弹出,单击ignore按钮,解决办法会在后面详细说明;
4、选择“driverstudio->ddk build setting”,在“ddk root directory”选项中选入ddk目录,例如“c:/winddk/2600”。为了防止每次启动vc来编译wdm时,都要设置ddk目录,可以在“控制面板”的“系统”-〉“高级”-〉“环境变量e”设置中,添加一个值为c:/winddk/2600的系统变量basedir;
5、用vc打开“…/driverstudio/driverworks/source/vdwlibs.dsw”,用 driver studio进行编译,如果编译成功就ok了,然后可以进行驱动的开发了。
6、利用driverwizard向导对所要开发的驱动类型进行正确配置,生成所需要的驱动工程框架。
安装driverstudio3.2 过程中出现dsddkenv8.dll failed to register错误的解决方法
原因:与vs2005集成时会发生此错误。
解决方法,补丁:ftp://ftp.compuware.com/pub/driverstudio/outgoing/patch/dsddkenv.zip
>extract it into a temp directory.
>copy the file dsddkenv8.dll into the /driverstudio/common/bin directory.
>select yes if prompted to copy over an existing one.
>copy the file dsddkenv8ui.dll into the /driverstudio/common/bin/1033 directory. select yes if prompted to copy over an existing one.
>then unregister the older version
go to start->run and type regsvr32 -u /driverstudio/common/ bin/ dsddkenv8.dll
注意〈install_dir〉不能含有空格,否则命令无法执行,笔者曾将driverstudio安装在c:/program files下,总是运行不了,为此郁闷了好久,后经别人提点才解决此问题,但不知其原因,请问有人知道吗?>then register the new copy
go to start->run and type regsvr32 / driverstudio/ common/ bin/ dsddkenv8.dll
>driverstudio menu should now be part of the visualstudio 2005 menu
如果在vs2005+补丁后生成的解决方案文件.sln无法双击打开工程时可以使用文本编辑器打开.sln文件在第二行加入“# visual studio 2005”保存即可,例如:
microsoft visual studio solution file, format version 9.00
# visual studio 2005
project({8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942}) = aa, driver/aa.vcproj, {6a0a9d07-fd4c-4d7c-805d-48d25fb4be6c}
endproject
根治方法:
打开/driverstudio/driverwizard/templates目录的wdmdriver.sln.net文件
找到“microsoft visual studio solution file, format version 9.00”这一行,在其后下一行加入“# visual studio 2005”保存即可,以后用driverwizard生成的工程就可以正常双击打开了。
编译中可能遇到的问题(vs2005环境下)
error c4430: missing type specifier - int assumed. note: c++ does not support default-int
这个错误,解决方法如下:
打开project->baseclasses properties->configuration->c/c++ ->command line,增加/wd4430选项。
nextnode()或其他函数没有返回类型的原因,你的代码可能是从vc++里迁移到vs2005里面来编译出现的错误吧,在vc里你的函数没有返回类型他自动默认为int,但在vs2005里就要报你上面的错误!
其它类似信息

推荐信息