📄 105155.html
字号:
Internet上共享文档。因为接口是静态的,这确实一直是一个大问题。读过第8章后,考虑一下为了创建任意种类的动态接口所需的程序复杂度和所需的标
记数量,就会认识到这一点。是的,你能把字处理文档结合一些现实的数据嵌入到HTML,但是数据并未变化,用户还是难于编辑它。对于电子表格也是一样。显
示数据一般说来并不太难,只要你肯于牺牲最新信息。ActiveX提供了解决办法,它允许你创建动态文档,你可以编辑它并且看到它的实时变化。<br>
那么,这一技术是从什么地方神秘地冒出来的呢?其实它一点也不新颖,Microsoft
只不过简单地修改了 Microsoft Office 中的技术而已。ActiveXDocument原来的名称为OLE Document
Objects(文档对象)(大多数人,包括Microsoft的人,已把ActiveX
Document简记为ActiveDocument,本书中我们将一直使用这个术语,原因在于它既清楚又简单)。它是Microsoft
Office Binder 技术的一部分,从未打算成为一个公开的规范。最初甚至在能得到OLE
DocumentObjects规范之前,必须申请Office兼容的程序。只是到了Windows
95出现之后,这一规范才成为每个人都能得到的东西。有迹象表明,Microsoft 会把这一规范公开的,原因在于它是OLE演变中的下一个逻辑步骤。<br>
本章的中心内容是ActiveDocument。我们要考察一下,除了数据应用之外,什么是
ActiveX的最重要的用途。另外你还将看到,创建浏览器使用的ActiveXDocument是多么容易。另外,本章还将介绍一下创建你自己的定制文
档的一些设置时,你需要做些什么工作。<br>
注 你可能会听到有人将ActiveX文档称为OLE文档对象,另外有些人将它们称为ActiveDocument文档。<br>
本章将介绍三个主要的ActiveDocument主题。首先让我们看一下
WebPublishing
Wizard。如果你不了解从用户角度看ActiveDocument是如何工作的,那么你应该密切关注这一节的内容了。总而言之,怎么能期望写出你自己
都不理解的应用程序呢?
接下来我们考察一下ActiveDocument的理论基础,最重要的是你要实现的接口。最后,我们创建一个简单程序,它实现了
ActiveDocument所需的接口。<br>
注释 本章的例子全部采用Visual C++
6.0,但是,除了一些小的程序性变动之外,也可以容易地使用4.2以上版本的Visual
C++(代码本身应该工作的一样好)。你必须拥有Visual C++ 的某种版本(推荐 6.0
版),以便于从头至尾地学习本章的例子。也可用Visual
C++4.1来学习这些例子,但你在工作中却要尽量少用为好。例如,可能需要添加对Visual
C++4.2以上版本作为缺省支持的各种新类的引用。另外,创建例子时,也不如使用新一些的产品那样,自动化程度高一些。理论上,使用Visual
C++4.0创建这些例子也可以。但所需的工作量很大,无疑使用该编译器的升级版显得更容易些。 <!--DWLayoutTable-->
<div align="right"></div></td>
</tr>
<tr>
<td class="Article_tdbgall" colspan="2" align="right"><script language="javascript" src="105155_files/4.js"></script></td>
</tr>
<tr>
<td class="Article_tdbgall" colspan="2" align="right">
<strong><font color="#ff0000">在百度搜索:</font><a href="http://www.baidu.com/baidu?tn=itcomputer&word=%B4%B4%BD%A8ActiveX%CE%C4%B5%B5%D3%A6%D3%C3%B3%CC%D0%F2" target="_blank">创建ActiveX文档应用程序</a></strong>
</td>
</tr>
<tr class="left_tdbgall" align="right">
<td colspan="2">
</td>
</tr>
</tbody></table>
<!--网页中部左栏文章内容代码结束--></td>
<td width="3"></td>
<td class="Article_tdbgall" valign="top" width="180">
<!--网页中部右栏代码开始-->
<table style="" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="left_title" align="center"> </td>
</tr>
<tr>
<td class="left_tdbg1"><script language="javascript" src="105155_files/9.js"></script><layer id="BannerZoneAD_Div9" width="160px" height="0px"><script type="text/javascript"><!--
google_ad_client = "pub-9527841127457375";
//itcomputer侧面
google_ad_slot = "7773910136";
google_ad_width = 160;
google_ad_height = 600;
//--></script>
<script type="text/javascript" src="105155_files/show_ads.js">
</script><iframe name="google_ads_frame" src="105155_files/ads_002.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="160"></iframe></layer></td>
</tr>
<tr>
<td class="left_tdbg2"></td>
</tr>
<tr>
<td class="left_title" align="center">相 关 文 章</td>
</tr>
<tr>
<td class="left_tdbg1"><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105154.html">什么是ActiveDocument(OLE文档对象)</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105144.html">ISAPI概述</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105145.html">使用Internet信息服务器(IIS)</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105146.html">使用URL Moniker</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105147.html">理解超链接接口</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105148.html">超链接基础</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105149.html">创建URL Moniker</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105150.html">URL Moniker概述</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105151.html">使用URL和Moniker</a></li><br><li><a href="http://www.itcomputer.com.cn/Virus/gfaq/200610/105152.html">创建ActiveDocument</a></li><br></td>
</tr>
<tr>
<td class="left_tdbg2"></td>
</tr>
<tr>
<td><script language="javascript" src="105155_files/12.htm"></script></td>
</tr>
</tbody></table>
<!--网页中部右栏代码结束--></td>
<td width="1"></td>
</tr>
</tbody></table>
<table class="center_tdbgall" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr>
<td class="main_shadow">
<script language="javascript" src="105155_files/10.js"></script><layer id="BannerZoneAD_Div10" width="750px" height="0px"><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" src="105155_files/bdun.htm" frameborder="0" height="45" scrolling="no" width="760">
</iframe>
<script type="text/javascript"><!--
google_ad_client = "pub-9527841127457375";
//itcomputer底部通栏
google_ad_slot = "5345535637";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript" src="105155_files/show_ads.js">
</script><iframe name="google_ads_frame" src="105155_files/ads_003.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="90" scrolling="no" width="728"></iframe>
<script src="105155_files/90102.js"></script><script src="105155_files/o.js"></script><a href="http://www.keyrun.com/web.html?user=jbbjcc" target="_blank"><img src="105155_files/default.gif" style="" title="麒润网络广告,网络广告多种模式、多站式投放,实时查询精确统计数据!" border="0" height="31" width="88"></a><input style="width: 0px; top: 0px; position: absolute; visibility: hidden;" id="oV6" onchange="fV8(fV1,5,true)"></layer><div style="display: inline;" id="oV10"></div>
</td>
</tr>
</tbody></table>
<!--文章显示代码结束-->
<table class="Bottom_tdbgall" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr align="center">
<td class="Bottom_Adminlogo">| <a class="Bottom" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.itcomputer.com.cn');" href="#">设为首页</a> | <a class="Bottom" href="javascript:window.external.addFavorite('http://www.itcomputer.com.cn','%E7%94%B5%E8%84%91%E5%AD%A6%E4%B9%A0%E7%BD%91');">加入收藏</a> | <a class="Bottom" href="http://www.itcomputer.com.cn/page/">栏目列表</a> | <a class="Bottom" href="http://www.itcomputer.com.cn/SiteMap/">网站地图</a> |<a class="Bottom" href="http://www.itcomputer.com.cn/FriendSite/" target="_blank">友情链接</a> | <a class="Bottom" href="http://www.itcomputer.com.cn/Copyright.asp" target="_blank">版权申明</a> | </td>
</tr>
<tr class="Bottom_Copyright">
<td><center>
版权所有 Copyright © 2006-2008 电脑学习网 核心:PowerEasy V2005;<br>
</center> </td>
</tr>
</tbody></table>
<!-- ********网页底部代码结束******** --><script language="javascript" src="105155_files/5.js"></script>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -