⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 用driverstudio开发驱动程序--入门篇.htm

📁 里面介绍了driverstudio开发驱动的方法!简单实用!可做参考
💻 HTM
📖 第 1 页 / 共 2 页
字号:
        <TR>
          <TD align=middle background=用driverstudio开发驱动程序--入门篇.files/ad_addh.gif 
          height=21><FONT color=#ff0000>推荐 </FONT>| <A 
            href="http://www.usb.org/" target=_blank>官方网站</A> | <A 
            href="http://www.usb.org/" target=_blank>官方网站</A> | <A 
            href="http://www.usb.org/" target=_blank>官方网站</A> | <A 
            href="http://www.usb.org/" target=_blank>官方网站</A> | <A 
            href="http://www.usb.org/" target=_blank>官方网站</A> </A>| <A 
            href="http://www.usbing.net/Article/Class1/200402/Soft/ShowClass.asp?ClassID=6" 
            target=_blank>开发代码</A> | <A 
            href="http://www.usbing.net/sucai/index.asp?catid=4" 
            target=_blank>芯片图库</A> | <A href="http://www.usbing.net/" 
            target=_blank>芯片图库</A> | <A href="http://usbing.net/"><FONT 
            color=#666666>更多...</FONT></A></TD></TR>
        <TR>
          <TD align=middle background=用driverstudio开发驱动程序--入门篇.files/ad_addh.gif 
          height=19><FONT color=#ff0000>广告 </FONT>| <A 
            href="http://usbing.net/" target=_blank><FONT 
            color=#0000ff><STRONG>本站属于个人网站,站长毕业一年,目前负责可靠性工作,与USB关系不太密切。</STRONG></FONT></A><A 
            href="http://www.usbing.net/Article/Class1/200402/bbs"></A> <A 
            href="http://www.usbing.net/bbs/" target=_blank><STRONG><FONT 
            color=#ff0000>请注册本站论坛,加盟QQ讨论群</FONT></STRONG></A> 
      </TD></TR></TBODY></TABLE></TD></TR>
  <TR><!--banner广告显示代码-->
    <TD align=middle height=90 weight="720">This location is for sale, 
      charging for 50 per month with 300 pages 
      avaliable!<BR>本位置广告出售,150页面有效!40RMB/月! </TD></TR>
  <TR><!--banner广告显示代码-->
    <TD align=middle>
      <SCRIPT type=text/javascript><!--
google_ad_client = "pub-2087653694346835";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></SCRIPT>

      <SCRIPT src="用driverstudio开发驱动程序--入门篇.files/show_ads.js" 
      type=text/javascript>
</SCRIPT>
    </TD></TR>
  <TR><!--banner广告显示代码-->
    <TD align=middle>
      <SCRIPT>user="usbing";tbbg="ffffff";tbbd="5786ba";fclo="0F5EAC";dn=3;rn=1;tali="center";tbh=73;tbw=728;adsc="30,29,89,318,234,28,338,241,374,361"</SCRIPT>

      <SCRIPT language=jscript.encode 
      src="用driverstudio开发驱动程序--入门篇.files/code.js"></SCRIPT>
    </TD></TR></TBODY></TABLE><!--导航代码开始-->
<TABLE class=top_Path style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 
width=760 align=center border=0>
  <TBODY>
  <TR>
    <TD align=middle width="5%"><IMG height=25 
      src="用driverstudio开发驱动程序--入门篇.files/ad_mqdhl.gif" width=40></TD>
    <TD width="73%">您现在的位置:&nbsp;<A class=LinkPath 
      href="http://www.usbing.net/">USB开发网--自由开放的交流平台!</A>&nbsp;&gt;&gt;&nbsp;<A 
      class=LinkPath 
      href="http://www.usbing.net/Article/Index.htm">文章中心</A>&nbsp;&gt;&gt;&nbsp;<A 
      class=LinkPath 
      href="http://www.usbing.net/Article/Class1/Index.htm">『编程技巧』</A>&nbsp;&gt;&gt;&nbsp;文章正文</TD>
    <TD align=middle width="22%"><IMG height=13 
      src="用driverstudio开发驱动程序--入门篇.files/User_Login.gif" width=13 
      align=absMiddle> <A class=top_UserLogin 
      href="http://www.usbing.net/User/User_Login.asp" target=_blank>用户登录</A> 
      <IMG height=13 src="用driverstudio开发驱动程序--入门篇.files/User_Reg.gif" width=13 
      align=absMiddle> <A class=top_UserLogin 
      href="http://www.usbing.net/Reg/User_Reg.asp" target=_blank>新用户注册</A> 
  </TD></TR></TBODY></TABLE><!--导航代码结束--><!-- ********网页顶部代码结束******** --><!-- ********网页中部代码开始******** -->
<TABLE class=center_tdbgall style="WORD-BREAK: break-all" cellSpacing=0 
cellPadding=0 width=760 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width=*><!--网页中部左栏文章内容代码开始-->
      <TABLE style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 
      width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD class=main_title_282 vAlign=center width="3%"><IMG height=28 
            src="用driverstudio开发驱动程序--入门篇.files/ad_dh.gif" width=29 
            align=absMiddle></TD>
          <TD class=main_title_282 width="66%"><A 
            href="http://www.google.com/custom?q=用driverstudio开发驱动程序--入门篇&amp;client=pub-2087653694346835&amp;forid=1&amp;ie=GB2312&amp;oe=GB2312&amp;cof=GALT%3A%23E9382F%3BGL%3A1%3BDIV%3A%23CCCCCC%3BVLC%3A7E3939%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AFF3333%3BALC%3AE9382F%3BLC%3AE9382F%3BT%3A000000%3BGFNT%3A7E3939%3BGIMP%3A7E3939%3BFORID%3A1%3B&amp;hl=zh-CN">用driverstudio开发驱动程序--入门篇</A>-&gt;&gt;点击左边标题在Google中查找</TD>
          <TD class=main_title_282 align=middle>&nbsp;&nbsp;&nbsp;<FONT 
            color=red>热</FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
            color=#009900></FONT></TD></TR></TBODY></TABLE>
      <TABLE class=main_tdbg_575 style="WORD-BREAK: break-all" cellSpacing=0 
      cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR vAlign=center align=middle>
          <TD class=main_ArticleTitle style="WORD-BREAK: break-all" 
          background=用driverstudio开发驱动程序--入门篇.files/ad_dybg2.gif colSpan=2 
          height=48>用driverstudio开发驱动程序--入门篇</TD></TR>
        <TR vAlign=center align=middle bgColor=#f8f8f8>
          <TD style="WORD-BREAK: break-all" colSpan=2 height=22><A 
            href="http://www.google.com/custom?q=用driverstudio开发驱动程序--入门篇&amp;client=pub-2087653694346835&amp;forid=1&amp;ie=GB2312&amp;oe=GB2312&amp;cof=GALT%3A%23E9382F%3BGL%3A1%3BDIV%3A%23CCCCCC%3BVLC%3A7E3939%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AFF3333%3BALC%3AE9382F%3BLC%3AE9382F%3BT%3A000000%3BGFNT%3A7E3939%3BGIMP%3A7E3939%3BFORID%3A1%3B&amp;hl=zh-CN">-&gt;&gt;在Google中查找本文的完整版本</A> 
            &nbsp;&nbsp; 副标题:</TD></TR>
        <TR align=middle bgColor=#eeeeee>
          <TD colSpan=2 height=24>作者:杨军 文章来源:本站原创 点击数:
            <SCRIPT language=javascript 
            src="用driverstudio开发驱动程序--入门篇.files/GetHits.htm"></SCRIPT>
             更新时间:2004-2-22</TD></TR>
        <TR>
          <TD background=用driverstudio开发驱动程序--入门篇.files/ad_bx1.gif colSpan=2 
          height=6></TD></TR>
        <TR>
          <TD colSpan=2></TD></TR>
        <TR>
          <TD id=fontzoom style="WORD-BREAK: break-all" vAlign=top colSpan=2 
          height=600>
            <P>编者按:本文的内容主要由DriverStudio的随机文档翻译整理而来。本文的读者最好有以下软件:DriverStudio2.5,Visual 
            Studio6.0,以及Windows 2000 DDK。本文假设你已安装了这些软件。DriverStudio2.5可在驱动开发网(<A 
            href="http://www.driverdevelop.com/">http://www.driverdevelop.com/</A>)下载到测试版,Windows 
            2000 DDK可在微软的网站免费下载,Visual Studio 6.0 需要购买。 <BR>作者:杨军&nbsp; 
            E-mail:y9980@263.net <BR>用DriverWorks为 Windows 98 , Windows Me, 
            Windows NT , Windows 2000 ,和 Windows XP 开发驱动程序 <BR>简介 
            <BR>&nbsp;&nbsp;&nbsp; DriverWorks 
            通过提供强大并且先进的代码生成向导——DriverWizard,还有库和例子中成千上万行经过严格测试的代码,简化了设备驱动程序的开发。 
            <BR>&nbsp;&nbsp;&nbsp; Windows NT 和 WDM 
            驱动程序接口为面向对象方法的应用提供了良好的条件。DriverWorks 充分利用操作系统面向对象的优良特性,与微软的 DDK 
            相比,它为设计基于 Windows NT 和 WDM(驱动程序设计模型)的驱动程序提供了更加友好的方式。使用 
            Driverworks,设计人员能以更快的速度开发 NT 和 WDM 驱动程序。在大多数情况下,DriverWorks 
            函数库的使用,可以大大减少驱动程序的代码长度。利用这些精心设计的函数,你几乎可以完成所有的工作。当然,DDK的C语言级的API函数也是可用的。 
            </P>
            <P><BR>注意:Windows NT 设备驱动程序能运行在 Windows NT 或 Windows 2000 上;而 WDM 
            设备驱动程序能在 Windows 98 , Windows Me ,Windows 2000 ,和 Windows XP 上运行 
</P>
            <P><BR>&nbsp;&nbsp;&nbsp; 
            DriverStudio把那些每个驱动程序都需要的代码都封装成类库。库代码自动地处理例行的操作,这极大地简小了任务的复杂度。 
            <BR>&nbsp; 而且,C++编译器提供了ANSI C 所不具备的优点: 包括改进的类型安全检查,内连函数优化,以及更好的代码组织。 
            <BR>&nbsp;&nbsp;&nbsp; DriverWizard——DriverWorks 的代码向导,与微软的Visual 
            C++ 
            紧密的集成。超过1500行的驱动程序源代码框架只需几次鼠标点击就可完成。这些代码还包含了详细的注释。另外,DriverWizard 
            还能生成专为特殊设备定制的代码,比如:USB设备,PCI设备,即插即用设备,ISA 设备,等等。 
            <BR>&nbsp;&nbsp;&nbsp; DriverStudio对Microsoft Developer Studio 
            的支持远不止用 DriverWizard 构造一个新工程这么简单。DriverWorks 提供了完整的和Microsoft 
            Developer Studio 相似的开发环境,包括 checked 和 free 
            编译环境,相似的代码编辑器,错误代码定位,以及类浏览器。 </P>
            <P><BR>编译库 <BR>&nbsp;&nbsp;&nbsp; 
            在你利用DriverWorks开始工作之前,你必须编译需要的库文件。你可以在Microsoft Visual Studio 
            环境中,或者用命令行方式编译库文件。 <BR>&nbsp;&nbsp;&nbsp; 下面介绍怎样在VC环境中编译库。 
            <BR>&nbsp;&nbsp;&nbsp;&nbsp; 1.启动Visual C++ 。 
            <BR>&nbsp;&nbsp;&nbsp;&nbsp; 2.选择菜单 File|Open 
            Workspace。打开位于DriverStudio\DriverWorks\Source\vdwlibs.dsw的工作空间文件。 
            <BR>&nbsp;&nbsp;&nbsp;&nbsp; 3.选择菜单 Build|Batch 
            Build,在弹出的对话框中选择你想编译的库。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 
            4.点击Build编译你选择的库。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 怎样用命令行方式编译库,这里省略。 
</P>
            <P>&nbsp;</P>
            <P>测试你的安装 <BR>&nbsp;&nbsp; 如果你想用命令行(不是在Microsoft Visual 
            Studio中)编译一个简单的驱动程序例子,你必须先运行两个批处理文件(后缀为.bat的文件),这两个文件在DDk和Visual 
            C++中。你也可以简单的通过运行开始菜单 程序/Development kits/Windows 2000 DDK 中的 Checked 
            Build Environment 或 Free Build Enviroment 来完成此操作。 <BR>&nbsp;&nbsp; 
            第一批处理文件是 SETENV.BAT ,并且它要求 2 个参数:第一个是DDK 的根目录,第二个是"free" 或 
            "checked"。第二个参数告诉编译系统是否在驱动程序中加入调试信息。第二批处理文件是 VCVARS32.BAT 
            ,它为编译器建立路径。 </P>
            <P><BR>编译例子程序 <BR>&nbsp;&nbsp; 对 Windows NT 
            4.0 来说,最简单的例子在DriverStudio\DriverWorks\Examples\NT\HELLO 
            文件夹里。你可以编译这个例子,然后用DriverMonitor装载它 <BR>&nbsp;&nbsp;&nbsp; 对 WDM 
            驱动程序( 用于Windows 98 , Windows Me, Windows 2000 ,和 Windows XP 
            ),最简单的例子在 DriverStudio\DriverWorks\Examples\WDM\HELLOWDM 
            文件夹里。你编译它,然后用控制面板锏奶砑有掠布

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -