vs2005 + DriverStudio3.2 修改方法

 其实问题基本都处在DriverStudio3.2的安装和编译上。下面就开始了: 这三个软件的安装顺序是:VS2005、WindowsXP DDK、DriverStudio3.2。这是推荐的安装顺序。

 首先,上网找

Windows XP DDK安装程序、

DriverStudio3.2安装程序、

DriverStudio3.2的补丁DSDDKEnv.zip        

 补丁文件我上传了,可以在这儿下http://download.youkuaiyun.com/source/2896238

 默认VS2005已经装好了,然后装 DDK,DDK就一路默认装就可以了。(建议把DDK的所有Example都装上,不然可能以后编译时会缺少头文件之类问题) 然后装 DriverStudio3.2,也是一路默认安装就可以了(注:安装目录中不要出现空格,原因马上讲到)。

安装过程中会出现一个错误对话框,大概是说 DSDDKEnv8.dll failed to register,选Ignore。出现这个错误的原因是:DriverStudio 3.2在与VS2005集成的过程中出错了,这个错误我们将在DS3.2安装完成后用补丁修复。 接下来补丁修复。DSDDKEnv.zip解压,

用文件 DSDDKEnv8.dllDSDDKEnv8UI.dll分别替换掉...../DriverStudio/Common/Bin DriverStudio/Common/Bin/1033目录下的同名文件。然后在开始菜单的运行中分别输入以下两条命令:regsvr32 -u <安装目录>\DriverStudio\Common\Bin\dsddkenv8.dll regsvr32 <安装目录>\DriverStudio\Common\Bin\dsddkenv8.dll 注:如果<安装目录>中有空格,那么以上两条命令会执行出错。 这时打开VS2005,其菜单栏的Tools中出现了DriverStudio子菜单。接下来还有以下几个工作要做: 1Tools->DriverStudio->DDK Build Settings设置DDK路径,即将DDK Root Directory设置为C:/WINDDK/2600(根据自己的安装路径修改) 2:生成vdw_wdm.lib,这个库文件在以后编译驱动时是需要的。过程如下:    

  首先,用VS2005开..../DriverStudio/DriverWorks/source/VdwLibs2005.sln;     将VdwLibs设为Active Project;    

  然后右击VdwLibs->Properties,VdwLibsProperty Pages顶部的Configuration和Platform要分别改成Active(WDM Checked)和win32 Active,这个很重要。   

            注1:这个一定要改对!!不然生成的vdw_wdm.lib是错误的,错误的库会导致以后编译驱动时出错,很烦的。      

         注2:检查VdwLibsProperty Pages->Librarian中的Output File是否为$(OutDir)/vdw_wdm.lib,如果不是,就改成这个。 

     最后编译工程(用Tools->DriverStudio->Build Solution),vdw_wdm.lib就生成了。     应该到此就安装完成了。大家可以用VS2005打开.../DriverStudio /DriverWorks/Examples/wdm中的一个例程,比如hellowdm。然后用菜单栏的Tools->DriverStudio->Build Solution with DDK Build.exe。如果生成正确,即在.../DriverStudio/DriverWorks/Examples/wdm/hellowdm/sys/objchk/i386中出现了HelloWdm.sys,那么就大功告成了,配置好了。

 接下来我们用Tools->DriverWizard生成驱动模板(具体怎么生成大家自己研究吧^_^)驱动工程文件生成后,

同样用 Tools->DriverStudio->Build Solution with DDK Build.exe编译时,会出现这个错误:1>NMAKE:  U1073: don't know how to make 'C:/WINDDK/2600/lib/wxp/i386/ntstrsafe.lib'出错原因是:根本就没有C:/WINDDK/2600/lib/wxp/i386/ntstrsafe.lib这个库文件,这貌似是DS3.2的bug解决办法是:1:在Project的Property pages里的Link=>Input=>Additional Dependencies项中去掉这个库           2:在Project的source文件中找到这句话,删掉就可以了 哦:TARGETLIBS=$(DDK_LIB_PATH)/ntstrsafe.lib$(DDK_LIB_PATH)/csq.lib。

DriverStudio 3.2 For VisualStudio 2005 补丁<br><br>解决DriverStudio 3.2插件在VisualStudio 2005中无法使用的问题。<br><br>原文件说明:<br><br>Compuware DriverStudio – DriverSuite<br>Version 3.2<br><br>Version 3.2 VisualStudio 2005 Integration fix.<br>The purpose of this update is to allow DriverStudio – DriverSuite to integrate into the VisualStudio 2005 environment<br><br>After extracting the files the result should have been two files and this read me. To install perform the steps below.<br><br>· Close all development environment windows.<br><br>· Copy the file DSDDKEnv8.dll into the <INSTALL_DIR>\DriverStudio\Common\Bin directory. Select "yes" if prompted to copy over an existing one.<br><br>· Copy the file DSDDKEnv8UI.dll into the <INSTALL_DIR>\DriverStudio\Common\Bin\1033 directory. Select "yes" if prompted to copy over an existing one.<br><br>· Then unregister the older version. Go to start->run and type "regsvr32 -u "<INSTALL_DIR>\DriverStudio\Common\Bin\dsddkenv8.dll"<br><br>· Then register the new copy. Go to start->run and type "regsvr32 "<INSTALL_DIR>\DriverStudio\Common\Bin\dsddkenv8.dll"<br><br>Contacting Technical Support<br>For Non-Technical Issues<br>Customer Service is available to answer any questions you might have regarding upgrades, serial numbers and other order fulfillment needs. Customer Service is available from 8:30am to 5:30pm EST, Monday through Friday. Call:<br><br>· In the U.S. and Canada: 1-888-283-9896<br><br>· International: +1-603-578-8103<br><br>For Technical Issues<br>Technical Support can assist you with all your technical problems, from installation to troubleshooting. Before contacting Technical Support, please read the relevant sections of the product documentation and the Readme files.<br><br>You can contact Technical Support by:<br><br>· E-Mail: Include your serial number and send as many details as possible to:<br><br>nashua.support@compuware.com<br><br>· World Wide Web: Submit issues and access additional support services at:<br><br>http://frontline.compuware.com/nashua/<br><br>· Fax: Include your serial number and send as many details as possible to:<br><br>1-603-578-8401<br><br>· Telephone: Telephone support is available as a paid* Priority Support Service from 8:30am to 5:30pm EST, Monday through Friday. Have product version and serial number ready.<br><br>·In the U.S. and Canada, call: 1-888-686-3427<br><br>·International customers, call: +1-603-578-8100<br><br>*Installation Issues: Technical Support handles installation and setup issues free of charge.<br><br>When contacting Technical Support, please have the following information available:<br><br>· Product/service pack name and version.<br><br>· Product serial number.<br><br>· Your system configuration: operating system, network configuration, amount of RAM, environment variables, and paths.<br><br>· The details of the problem: settings, error messages, stack dumps, and the contents of any diagnostic windows.<br><br>· The details of how to reproduce the problem (if the problem is repeatable).<br><br>· The name and version of your compiler and linker and the options that you used in compiling and linking.<br><br> <br><br>Copyright 2005 Compuware Corporation<br>
DriverStudio 3.2 升级补丁<br><br>将DriverStudio 3.2升级至DriverStudio 3.2.1<br><br>原说明如下:<br><br>Compuware DriverStudio – DriverSuite<br>Version 3.2 ONLY<br><br>Version 3.2 patch.<br>The purpose of this patch is to update DriverStudio – DriverSuite to fix several bugs that have been found. It also has the operating system update patch.<br><br>After extracting the files the result should have been two directories a host directory and a target directory.<br><br>This corresponds to the two distinct parts of the debug environment.<br><br>· The Host – The machine that will host the debugging applications.<br><br>· The Target – The machine that will be running the binary that will be tested.<br><br>NOTE: On a single machine-debugging environment (When the debugging and the testing machine are the same machine) you will need to do the host AND the target portions described below.<br><br>Softice is a typically a single machine environment and VisualSoftice is typically a two machine environment.<br><br> <br><br>Host<br><br>· Copy the files osinfo.dat and osinfob.dat from the host directory into the following directories.<br><br> <Install Directory>\Compuware\DriverStudio<br><br> < Install Directory>\Compuware\DriverStudio\VisualSoftICE<br><br> <br><br>· Copy the file DS.exe the host directory into the following directory<br><br> <Install Directory>\Compuware\DriverStudio<br><br> <br><br>Target<br><br>· Copy all the .sys and all the .dat files found in the root of the target directory to the system32\drivers directory.<br><br>· Copy the siksym.sys from the appropriate subdirectory (IA64, AMD64 or X86) into the system32 drivers directory. Note: only copy the one that applies to that specific target.<br><br> <br><br>Bug Fixes<br>· Enumeration of printers that were removed causing memory exception in DriverWorkbench (ds.exe).<br><br>· Update support for XP SP2 and future operating systems.<br><br>· Occasional keyboard lockups.<br><br> <br><br>Contacting Technical Support<br>For Non-Technical Issues<br>Customer Service is available to answer any questions you might have regarding upgrades, serial numbers and other order fulfillment needs. Customer Service is available from 8:30am to 5:30pm EST, Monday through Friday. Call:<br><br>· In the U.S. and Canada: 1-888-283-9896<br><br>· International: +1-603-578-8103<br><br>For Technical Issues<br>Technical Support can assist you with all your technical problems, from installation to troubleshooting. Before contacting Technical Support, please read the relevant sections of the product documentation and the Readme files.<br><br>You can contact Technical Support by:<br><br>· E-Mail: Include your serial number and send as many details as possible to:<br><br>nashua.support@compuware.com<br><br>· World Wide Web: Submit issues and access additional support services at:<br><br>http://frontline.compuware.com/nashua/<br><br>· Fax: Include your serial number and send as many details as possible to:<br><br>1-603-578-8401<br><br>· Telephone: Telephone support is available as a paid* Priority Support Service from 8:30am to 5:30pm EST, Monday through Friday. Have product version and serial number ready.<br><br>·In the U.S. and Canada, call: 1-888-686-3427<br><br>·International customers, call: +1-603-578-8100<br><br>*Installation Issues: Technical Support handles installation and setup issues free of charge.<br><br>When contacting Technical Support, please have the following information available:<br><br>· Product/service pack name and version.<br><br>· Product serial number.<br><br>· Your system configuration: operating system, network configuration, amount of RAM, environment variables, and paths.<br><br>· The details of the problem: settings, error messages, stack dumps, and the contents of any diagnostic windows.<br><br>· The details of how to reproduce the problem (if the problem is repeatable).<br><br>· The name and version of your compiler and linker and the options that you used in compiling and linking.<br><br> <br><br>Copyright 2005 Compuware Corporation<br>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值